From eeedfbea4c70f5edeff22eaf246155091ad205f1 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Fri, 23 Aug 2024 17:58:28 +0300 Subject: [PATCH] cmake: add force clang and gcc to presets --- CMakePresets.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index e8e1b0a..b7817ce 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -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, @@ -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"]