From 53f3d34a46439af6f315c01239ecf4dce243cc98 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 16 Dec 2024 15:13:06 -0300 Subject: [PATCH] Add linux-release config. --- CMakePresets.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index a6c20c23..c1d215ad 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -88,6 +88,39 @@ "remoteSourceRootDir": "$env{HOME}/.vs/$ms{projectDirName}" } } + }, + { + "name": "linux-release", + "displayName": "Linux Release", + "description": "Target the Windows Subsystem for Linux (WSL) or a remote Linux system.", + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "installDir": "${sourceDir}/out/install/${presetName}", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_TOOLCHAIN_FILE": { + "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", + "type": "FILEPATH" + }, + "VCPKG_TARGET_TRIPLET": { + "value": "x64-linux", + "type": "STRING" + }, + "VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/linux-clang.cmake" + }, + "environment": { + "VCPKG_ROOT": "${sourceDir}/thirdparty/vcpkg" + }, + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Linux" + }, + "vendor": { + "microsoft.com/VisualStudioRemoteSettings/CMake/2.0": { + "remoteSourceRootDir": "$env{HOME}/.vs/$ms{projectDirName}" + } + } } ] }