From 1e26622f4d1d3334372b98cf6950a5d96c0a232a Mon Sep 17 00:00:00 2001 From: Cosmin Stejerean Date: Mon, 13 May 2024 11:29:05 -0700 Subject: [PATCH] add macos-release preset Currently macos is missing the macos-release preset that is present for window and linux. This adds that, and renames macos-default to macos-debug for consistency. --- CMakePresets.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 825f8c6..0bf7c1c 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -61,7 +61,7 @@ } }, { - "name": "macos-default", + "name": "macos-debug", "displayName": "macOS Debug", "description": "Target a remote macOS system with Ninja", "inherits": [ "base" ], @@ -75,6 +75,15 @@ "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" } } }, + { + "name": "macos-release", + "displayName": "macOS Release", + "description": "Target a remote macOS system with Ninja", + "inherits": [ "macos-debug" ], + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + }, { "name": "windows-debug", "displayName": "Windows x64 Debug", @@ -158,7 +167,13 @@ "name": "macos-debug", "description": "MacOS debug build", "inherits": "core-build", - "configurePreset": "macos-default" + "configurePreset": "macos-debug" + }, + { + "name": "macos-release", + "description": "MacOS release build", + "inherits": "core-build", + "configurePreset": "macos-release" } ], "testPresets": [ @@ -177,4 +192,4 @@ } } ] -} \ No newline at end of file +}