mirror of
https://github.com/boostorg/redis.git
synced 2026-01-19 04:42:09 +00:00
86 lines
2.6 KiB
JSON
86 lines
2.6 KiB
JSON
{
|
|
"version": 2,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 14,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "cmake-pedantic",
|
|
"hidden": true,
|
|
"warnings": {
|
|
"dev": true,
|
|
"deprecated": true,
|
|
"uninitialized": true,
|
|
"unusedCli": true,
|
|
"systemVars": false
|
|
},
|
|
"errors": {
|
|
"dev": true,
|
|
"deprecated": true
|
|
}
|
|
},
|
|
{
|
|
"name": "coverage",
|
|
"generator": "Unix Makefiles",
|
|
"hidden": false,
|
|
"inherits": ["cmake-pedantic"],
|
|
"binaryDir": "${sourceDir}/build/coverage",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Coverage",
|
|
"CMAKE_CXX_EXTENSIONS": "OFF",
|
|
"CMAKE_CXX_FLAGS": "-Wall -Wextra",
|
|
"CMAKE_CXX_FLAGS_COVERAGE": "-Og -g --coverage -fkeep-inline-functions -fkeep-static-functions",
|
|
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
|
|
"CMAKE_EXE_LINKER_FLAGS_COVERAGE": "--coverage",
|
|
"CMAKE_SHARED_LINKER_FLAGS_COVERAGE": "--coverage",
|
|
"PROJECT_BINARY_DIR": "${sourceDir}/build/coverage",
|
|
"COVERAGE_HTML_COMMAND": ""
|
|
}
|
|
},
|
|
{
|
|
"name": "dev",
|
|
"generator": "Unix Makefiles",
|
|
"hidden": false,
|
|
"inherits": ["cmake-pedantic"],
|
|
"binaryDir": "${sourceDir}/build/dev",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_CXX_EXTENSIONS": "OFF",
|
|
"CMAKE_CXX_FLAGS": "-Wall -Wextra -fsanitize=address",
|
|
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address",
|
|
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
|
|
"PROJECT_BINARY_DIR": "${sourceDir}/build/dev"
|
|
}
|
|
},
|
|
{
|
|
"name": "clang-tidy",
|
|
"generator": "Unix Makefiles",
|
|
"hidden": false,
|
|
"inherits": ["dev"],
|
|
"binaryDir": "${sourceDir}/build/clang-tidy",
|
|
"cacheVariables": {
|
|
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;--header-filter=${sourceDir}/include/*",
|
|
"CMAKE_CXX_STANDARD": "20"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{ "name": "coverage", "configurePreset": "coverage" },
|
|
{ "name": "dev", "configurePreset": "dev" },
|
|
{ "name": "clang-tidy", "configurePreset": "clang-tidy" }
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "test",
|
|
"hidden": true,
|
|
"output": {"outputOnFailure": true},
|
|
"execution": {"noTestsAction": "error", "stopOnFailure": true}
|
|
},
|
|
{ "name": "coverage", "configurePreset": "coverage", "inherits": ["test"] },
|
|
{ "name": "dev", "configurePreset": "dev", "inherits": ["test"] },
|
|
{ "name": "clang-tidy", "configurePreset": "clang-tidy", "inherits": ["test"] }
|
|
]
|
|
}
|