aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-09-26 05:17:05 -0700
committerGitHub <noreply@github.com>2020-09-26 05:17:05 -0700
commit6d6c6642361fe75cf4b4d8881b81dc4a1908fc18 (patch)
tree22fe461a18229e42645417b2a86f591ac23dfcf9 /scripts
parent501e44e02c2dbb75b34c36ad4bbc9439d2486394 (diff)
downloadvcpkg-6d6c6642361fe75cf4b4d8881b81dc4a1908fc18.tar.gz
vcpkg-6d6c6642361fe75cf4b4d8881b81dc4a1908fc18.zip
[vcpkg_build_cmake] Set PARALLEL_ARG when using Ninja (#13732)
* [vcpkg_build_cmake] Set PARALLEL_ARG when using Ninja * Update scripts/cmake/vcpkg_build_cmake.cmake
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_build_cmake.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_build_cmake.cmake b/scripts/cmake/vcpkg_build_cmake.cmake
index 5274c29da..f5867a1b5 100644
--- a/scripts/cmake/vcpkg_build_cmake.cmake
+++ b/scripts/cmake/vcpkg_build_cmake.cmake
@@ -41,6 +41,7 @@ function(vcpkg_build_cmake)
if(_VCPKG_CMAKE_GENERATOR MATCHES "Ninja")
set(BUILD_ARGS "-v") # verbose output
+ set(PARALLEL_ARG "-j${VCPKG_CONCURRENCY}")
set(NO_PARALLEL_ARG "-j1")
elseif(_VCPKG_CMAKE_GENERATOR MATCHES "Visual Studio")
set(BUILD_ARGS