Skip to content

Commit

Permalink
Add missing Windows presets
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Nov 23, 2024
1 parent 7b88578 commit 7e118c2
Showing 1 changed file with 136 additions and 12 deletions.
148 changes: 136 additions & 12 deletions cmake/CMakeWindowsPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,151 @@
],
"configurePresets": [
{
"name": "release",
"description": "Windows preset for library developers",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build",
"inherits": [
"root-config"
],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl"
},
"name": "base-Windows-ClangCL",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"inherits": [
"root-config"
],
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl",
"CMAKE_CONFIGURATION_TYPES": "Debug;Coverage;Release;Asan;Lsan;Usan",
"CMAKE_CXX_FLAGS": "/Wall /WX",
"CMAKE_C_FLAGS": "/Wall /WX"
}
},
{
"name": "debug-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_CXX_FLAGS_DEBUG": "/Zi /Od /MDd",
"CMAKE_C_FLAGS_DEBUG": "/Zi /Od /MDd"
}
},
{
"name": "relwithdebinfo-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "/O2 /Zi /MD",
"CMAKE_C_FLAGS_RELWITHDEBINFO": "/O2 /Zi /MD"
}
},
{
"name": "release-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_RELEASE": "/O2 /DNDEBUG /MD",
"CMAKE_C_FLAGS_RELEASE": "/O2 /DNDEBUG /MD"
}
},
{
"name": "coverage-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Coverage",
"CMAKE_CXX_FLAGS_COVERAGE": "-fprofile-instr-generate -fcoverage-mapping",
"CMAKE_C_FLAGS_COVERAGE": "-fprofile-instr-generate -fcoverage-mapping",
"CMAKE_LD_FLAGS_COVERAGE": "-fprofile-instr-generate"
}
},
{
"name": "asan-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Asan",
"CMAKE_CXX_FLAGS_ASAN": "-fsanitize=address",
"CMAKE_C_FLAGS_ASAN": "-fsanitize=address",
"CMAKE_LD_FLAGS_ASAN": "-fsanitize=address"
}
},
{
"name": "lsan-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Lsan",
"CMAKE_CXX_FLAGS_LSAN": "-fsanitize=leak",
"CMAKE_C_FLAGS_LSAN": "-fsanitize=leak",
"CMAKE_LD_FLAGS_LSAN": "-fsanitize=leak"
}
},
{
"name": "usan-base-Windows-ClangCL",
"hidden": true,
"inherits": [
"base-Windows-ClangCL"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Usan",
"CMAKE_CXX_FLAGS_USAN": "-fsanitize=undefined",
"CMAKE_C_FLAGS_USAN": "-fsanitize=undefined",
"CMAKE_LD_FLAGS_USAN": "-fsanitize=undefined"
}
},
{
"name": "debug",
"description": "Windows preset for library developers",
"displayName": "Debug Build",
"inherits": [
"debug-base-Windows-ClangCL"
]
},
{
"name": "coverage",
"displayName": "Coverage Build",
"inherits": [
"coverage-base-Windows-ClangCL"
]
},
{
"name": "release",
"displayName": "Release Build",
"inherits": [
"relwithdebinfo-base-Windows-ClangCL"
]
},
{
"name": "asan",
"displayName": "AddressSanitizer Build",
"inherits": [
"asan-base-Windows-ClangCL"
]
},
{
"name": "lsan",
"displayName": "LeakSanitizer Build",
"inherits": [
"lsan-base-Windows-ClangCL"
]
},
{
"name": "usan",
"displayName": "UndefinedSanitizer Build",
"inherits": [
"release"
"usan-base-Windows-ClangCL"
]
}
]
Expand Down

0 comments on commit 7e118c2

Please sign in to comment.