From 2d6b5f455e8829f2436cffbf57dedbd270c09972 Mon Sep 17 00:00:00 2001 From: Alonso Schaich Date: Fri, 5 Apr 2024 04:11:31 +0900 Subject: [PATCH] Add cmake presets representing bootstrap-vcpkg.sh invokations (#1380) --- CMakePresets.json | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index a76c43d52..f5a6a5dd8 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -172,6 +172,25 @@ "CMAKE_OSX_DEPLOYMENT_TARGET": "10.13", "VCPKG_WARNINGS_AS_ERRORS": true } + }, + { + "name": "bootstrap.sh", + "description": "Preset used by vcpkg's bootstrap-vcpkg.sh", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "VCPKG_DEVELOPMENT_WARNINGS": "OFF" + } + }, + { + "name": "bootstrap.sh parallel build", + "description": "Preset used by vcpkg's bootstrap-vcpkg.sh when the VCPKG_MAX_CONCURRENCY variable is non-empty", + "inherits": ["bootstrap.sh"], + "cacheVariables": { + "CMAKE_JOB_POOL_COMPILE": "compile", + "CMAKE_JOB_POOL_LINK": "link", + "CMAKE_JOB_POOLS": "compile=$env{VCPKG_MAX_CONCURRENCY};link=$env{VCPKG_MAX_CONCURRENCY}" + } } ], "buildPresets": [ @@ -202,4 +221,4 @@ "configurePreset": "macos-ci" } ] -} \ No newline at end of file +}