Skip to content

Commit

Permalink
replace CMakeSettings.json with CMakePresets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Sep 15, 2024
1 parent 409602a commit a12b17a
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 126 deletions.
247 changes: 247 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"cacheVariables": {
"GAPP_USE_WERROR": "ON",
"GAPP_BUILD_TESTS": "ON",
"GAPP_BUILD_BENCHMARKS": "ON",
"GAPP_BUILD_EXAMPLES": "ON",
"GAPP_USE_LTO": "ON"
}
},
{
"name": "windows-base",
"inherits": "base",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "linux-base",
"inherits": "base",
"hidden": true,
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "msvc-debug",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc-relwithdebinfo",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc-release",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "msvc-dll",
"inherits": "msvc-release",
"cacheVariables": {
"BUILD_SHARED_LIBS": "ON"
}
},
{
"name": "msvc-x86",
"inherits": "msvc-release",
"architecture": {
"value": "x86",
"strategy": "external"
}
},
{
"name": "clang-cl-debug",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "clang-cl"
}
},
{
"name": "clang-cl-relwithdebinfo",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_COMPILER": "clang-cl"
}
},
{
"name": "clang-cl-release",
"inherits": "windows-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "clang-cl"
}
},
{
"name": "clang-cl-dll",
"inherits": "clang-cl-release",
"cacheVariables": {
"BUILD_SHARED_LIBS": "ON"
}
},
{
"name": "gcc-debug",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "gcc-relwithdebinfo",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "gcc-release",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "clang-debug",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "clang-relwithdebinfo",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "clang-release",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "clang-tidy",
"inherits": "clang-release",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy"
}
},
{
"name": "asan",
"inherits": "clang-release",
"cacheVariables": {
"GAPP_CXX_FLAGS": "-fsanitize=address -g -fno-omit-frame-pointer"
}
},
{
"name": "ubsan",
"inherits": "clang-release",
"cacheVariables": {
"GAPP_CXX_FLAGS": "-fsanitize=undefined -g -fno-omit-frame-pointer"
}
},
{
"name": "tsan",
"inherits": "clang-release",
"cacheVariables": {
"GAPP_CXX_FLAGS": "-fsanitize=thread -g -fno-omit-frame-pointer"
}
},
{
"name": "coverage",
"inherits": "gcc-debug",
"cacheVariables": {
"GAPP_CXX_FLAGS": "--coverage",
"CMAKE_EXE_LINKER_FLAGS": "--coverage",
"GAPP_BUILD_BENCHMARKS": "OFF",
"GAPP_BUILD_EXAMPLES": "OFF"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "base",
"jobs": 0
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "base",
"execution": {
"scheduleRandom": true
},
"output": {
"outputOnFailure": true
}
},
{
"name": "asan",
"inherits": "default",
"configurePreset": "asan",
"environment": {
"ASAN_OPTIONS": "check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:detect_leaks=1"
}
},
{
"name": "ubsan",
"inherits": "default",
"configurePreset": "ubsan",
"environment": {
"UBSAN_OPTIONS": "print_stacktrace=1:print_summary=1"
}
},
{
"name": "tsan",
"inherits": "default",
"configurePreset": "tsan",
"environment": {
"TSAN_OPTIONS": "verbosity=1:force_seq_cst_atomics=0"
}
}
]
}
126 changes: 0 additions & 126 deletions CMakeSettings.json

This file was deleted.

0 comments on commit a12b17a

Please sign in to comment.