Skip to content

Commit

Permalink
cmake: add force clang and gcc to presets
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Aug 23, 2024
1 parent 857c54e commit eeedfbe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
"hidden": true,
"cacheVariables": { "BUILD_SHARED_LIBS": "OFF" }
},
{
"name": "gcc",
"hidden": true,
"cacheVariables": { "CMAKE_C_COMPILER": "gcc", "CMAKE_CXX_COMPILER": "g++" }
},
{
"name": "clang",
"hidden": true,
"cacheVariables": { "CMAKE_C_COMPILER": "clang", "CMAKE_CXX_COMPILER": "clang++" }
},
{
"name": "asan",
"hidden": true,
Expand Down Expand Up @@ -67,6 +77,15 @@
"inherits": ["base-release", "static"]
},

{
"name": "debug-gcc",
"inherits": ["base-debug", "gcc"]
},
{
"name": "release-gcc",
"inherits": ["base-release", "gcc"]
},

{
"name": "debug-asan",
"inherits": ["base-debug", "asan"]
Expand Down

0 comments on commit eeedfbe

Please sign in to comment.