aboutsummaryrefslogtreecommitdiffstats
path: root/CMakePresets.json
diff options
context:
space:
mode:
Diffstat (limited to 'CMakePresets.json')
-rw-r--r--CMakePresets.json46
1 files changed, 10 insertions, 36 deletions
diff --git a/CMakePresets.json b/CMakePresets.json
index 717f7f8..529b602 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -2,59 +2,33 @@
"version": 3,
"configurePresets": [
{
- "name": "windows-base",
+ "name": "gnu-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
- "CMAKE_C_COMPILER": "cl.exe",
- "CMAKE_CXX_COMPILER": "cl.exe",
- "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake",
- "VCPKG_TARGET_TRIPLET": "x64-windows"
+ "CMAKE_C_COMPILER": "gcc",
+ "CMAKE_CXX_COMPILER": "g++"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
- "rhs": "Windows"
+ "rhs": "Linux"
}
},
{
- "name": "x64-debug",
- "displayName": "x64 Debug",
- "inherits": "windows-base",
- "architecture": {
- "value": "x64",
- "strategy": "external"
- },
- "cacheVariables": {
- "CMAKE_BUILD_TYPE": "Debug"
- }
- },
- {
- "name": "x64-release",
- "displayName": "x64 Release",
- "inherits": "x64-debug",
- "cacheVariables": {
- "CMAKE_BUILD_TYPE": "Release"
- }
- },
- {
- "name": "x86-debug",
- "displayName": "x86 Debug",
- "inherits": "windows-base",
- "architecture": {
- "value": "x86",
- "strategy": "external"
- },
+ "name": "gnu-debug",
+ "displayName": "GNU Debug",
+ "inherits": "gnu-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
- "name": "x86-release",
- "displayName": "x86 Release",
- "inherits": "x86-debug",
+ "name": "gnu-release",
+ "displayName": "GNU Release",
+ "inherits": "gnu-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}