Created
February 22, 2022 06:34
-
-
Save mrowrpurr/f633ca66f22247f9f62769b3620db423 to your computer and use it in GitHub Desktop.
CMake Presets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 3, | |
| "configurePresets": [ | |
| { | |
| "name": "base", | |
| "description": "For more information: http://aka.ms/cmakepresetsvs", | |
| "hidden": true, | |
| "generator": "Ninja", | |
| "binaryDir": "${sourceDir}/out/build/${presetName}", | |
| "installDir": "${sourceDir}/out/install/${presetName}", | |
| "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | |
| "environment": { | |
| "VCPKG_FEATURE_FLAGS": "manifests,versions,binarycaching,registries" | |
| }, | |
| "condition": { | |
| "type": "equals", | |
| "lhs": "${hostSystemName}", | |
| "rhs": "Windows" | |
| } | |
| }, | |
| { | |
| "name": "vcpkg", | |
| "cacheVariables": { | |
| "CMAKE_TOOLCHAIN_FILE": { | |
| "type": "STRING", | |
| "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | |
| } | |
| }, | |
| "hidden": true | |
| }, | |
| { | |
| "name": "cmake-dev", | |
| "binaryDir": "${sourceDir}/build", | |
| "cacheVariables": { | |
| "CMAKE_BUILD_TYPE": { | |
| "type": "STRING", | |
| "value": "Debug" | |
| } | |
| }, | |
| "errors": { | |
| "deprecated": true | |
| }, | |
| "hidden": true, | |
| "warnings": { | |
| "deprecated": true, | |
| "dev": true | |
| } | |
| }, | |
| { | |
| "name": "windows", | |
| "cacheVariables": { | |
| "CMAKE_MSVC_RUNTIME_LIBRARY": { | |
| "type": "STRING", | |
| "value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" | |
| }, | |
| "VCPKG_TARGET_TRIPLET": { | |
| "type": "STRING", | |
| "value": "x64-windows-static-md" | |
| } | |
| }, | |
| "hidden": true | |
| }, | |
| { | |
| "name": "vs2022-windows", | |
| "architecture": { | |
| "strategy": "set", | |
| "value": "x64" | |
| }, | |
| "cacheVariables": { | |
| "CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX" | |
| }, | |
| "generator": "Visual Studio 17 2022", | |
| "inherits": [ | |
| "cmake-dev", | |
| "vcpkg", | |
| "windows" | |
| ], | |
| "displayName": "vs2022-windows", | |
| "toolset": "v143" | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 3, | |
| "configurePresets": [ | |
| { | |
| "name": "base", | |
| "description": "For more information: http://aka.ms/cmakepresetsvs", | |
| "hidden": true, | |
| "generator": "Ninja", | |
| "binaryDir": "${sourceDir}/out/build/${presetName}", | |
| "installDir": "${sourceDir}/out/install/${presetName}", | |
| "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | |
| "environment": { | |
| "VCPKG_FEATURE_FLAGS": "manifests,versions,binarycaching,registries" | |
| }, | |
| "condition": { | |
| "type": "equals", | |
| "lhs": "${hostSystemName}", | |
| "rhs": "Windows" | |
| } | |
| }, | |
| { | |
| "name": "vcpkg", | |
| "cacheVariables": { | |
| "CMAKE_TOOLCHAIN_FILE": { | |
| "type": "STRING", | |
| "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | |
| } | |
| }, | |
| "hidden": true | |
| }, | |
| { | |
| "name": "cmake-dev", | |
| "binaryDir": "${sourceDir}/build", | |
| "cacheVariables": { | |
| "CMAKE_BUILD_TYPE": { | |
| "type": "STRING", | |
| "value": "Debug" | |
| } | |
| }, | |
| "errors": { | |
| "deprecated": true | |
| }, | |
| "hidden": true, | |
| "warnings": { | |
| "deprecated": true, | |
| "dev": true | |
| } | |
| }, | |
| { | |
| "name": "windows", | |
| "cacheVariables": { | |
| "CMAKE_MSVC_RUNTIME_LIBRARY": { | |
| "type": "STRING", | |
| "value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" | |
| }, | |
| "VCPKG_TARGET_TRIPLET": { | |
| "type": "STRING", | |
| "value": "x64-windows-static-md" | |
| } | |
| }, | |
| "hidden": true | |
| }, | |
| { | |
| "name": "vs2022-windows", | |
| "architecture": { | |
| "strategy": "set", | |
| "value": "x64" | |
| }, | |
| "cacheVariables": { | |
| "CMAKE_CXX_FLAGS": "/EHsc /MP /W4" | |
| }, | |
| "generator": "Visual Studio 17 2022", | |
| "inherits": [ | |
| "cmake-dev", | |
| "vcpkg", | |
| "windows" | |
| ], | |
| "displayName": "vs2022-windows", | |
| "toolset": "v143" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment