Skip to content

Commit

Permalink
cmake: Deduplicate preset settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Sep 9, 2024
1 parent 9751dd0 commit 265ca65
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@
},
"configurePresets": [
{
"name": "default",
"displayName": "Default",
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/lld.toolchain.cmake",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/lld.toolchain.cmake"
}
},
{
"name": "default",
"displayName": "Default",
"inherits": "base",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Release;Debug",
"VAST_ENABLE_TESTING": "ON",
"LLVM_EXTERNAL_LIT": "$env{LLVM_EXTERNAL_LIT}",
"CMAKE_PREFIX_PATH": "$env{CMAKE_PREFIX_PATH}"
}
},
Expand Down Expand Up @@ -46,14 +52,11 @@
{
"name": "compiler-explorer",
"displayName": "Configure VAST for Compiler Explorer",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"inherits": "base",
"environment": {
"CMAKE_PREFIX_PATH": "/usr/lib/llvm-18"
},
"cacheVariables": {
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/lld.toolchain.cmake",
"CMAKE_CONFIGURATION_TYPES": "Release",
"VAST_ENABLE_TESTING": "OFF",
"CMAKE_C_COMPILER": "/usr/bin/clang-18",
Expand Down

0 comments on commit 265ca65

Please sign in to comment.