From a99c11669a9737169ac4375d8ec7701b3dc9a95a Mon Sep 17 00:00:00 2001 From: xlauko Date: Thu, 20 Jun 2024 20:00:11 +0200 Subject: [PATCH] cmake: Setup env paths. --- CMakePresets.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 610aab3..aee5684 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,11 +1,20 @@ { - "version": 2, + "version": 6, "cmakeMinimumRequired": { "major": 3, - "minor": 14, + "minor": 25, "patch": 0 }, "configurePresets": [ + { + "name": "base", + "hidden": true, + "cacheVariables": { + "CMAKE_CONFIGURATION_TYPES": "Release;RelWithDebInfo;Debug", + "LLVM_EXTERNAL_LIT": "$env{LLVM_EXTERNAL_LIT}", + "CMAKE_PREFIX_PATH": "$env{CMAKE_PREFIX_PATH}" + } + }, { "name": "cmake-pedantic", "hidden": true, @@ -49,7 +58,7 @@ "hidden": true, "cacheVariables": { "CMAKE_CXX_EXTENSIONS": "OFF", - "CMAKE_CXX_STANDARD": "20", + "CMAKE_CXX_STANDARD": "23", "CMAKE_CXX_STANDARD_REQUIRED": "ON" } }, @@ -83,7 +92,7 @@ "name": "ci-linux", "generator": "Unix Makefiles", "hidden": true, - "inherits": ["flags-gcc-clang", "ci-std"], + "inherits": ["flags-gcc-clang", "ci-std", "base"], "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } @@ -92,7 +101,7 @@ "name": "ci-darwin", "generator": "Unix Makefiles", "hidden": true, - "inherits": ["flags-appleclang", "ci-std"], + "inherits": ["flags-appleclang", "ci-std", "base"], "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" }