From 4017f5e5e3ed221ed8c08aa9f2e43ac957bead8e Mon Sep 17 00:00:00 2001 From: Lunix-420 Date: Sun, 10 May 2026 12:41:49 +0200 Subject: [PATCH] cmake: add RelWithDebInfo presets for Windows and Linux --- CMakePresets.json | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index afadad1..298c6f1 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -49,7 +49,7 @@ } }, { - "name": "Windows Release With Debug Info", + "name": "Windows RelWithDebInfo", "hidden": false, "description": "Release configuration with debug symbols", "generator": "Ninja", @@ -180,6 +180,28 @@ "rhs": "Darwin" } }, + { + "name": "Mac RelWithDebInfo", + "hidden": false, + "description": "Release configuration with debug symbols for macOS", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_C_COMPILER": "/usr/bin/clang", + "CMAKE_CXX_COMPILER": "/usr/bin/clang++", + "CMAKE_OSX_DEPLOYMENT_TARGET": "10.15" + }, + "environment": { + "CC": "/usr/bin/clang", + "CXX": "/usr/bin/clang++" + }, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Darwin" + } + }, { "name": "Linux Debug", "hidden": false, @@ -224,6 +246,28 @@ "rhs": "Linux" } }, + { + "name": "Linux RelWithDebInfo", + "hidden": false, + "description": "Release configuration with debug symbols for Linux", + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", + "CMAKE_C_COMPILER": "/usr/bin/gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/g++" + }, + "environment": { + "CC": "/usr/bin/gcc", + "CXX": "/usr/bin/g++" + }, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Linux" + } + }, { "name": "Linux Debug Perfetto", "hidden": false,