From 6d6c6642361fe75cf4b4d8881b81dc4a1908fc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jack=C2=B7Boos=C2=B7Yu?= <47264268+JackBoosY@users.noreply.github.com> Date: Sat, 26 Sep 2020 05:17:05 -0700 Subject: [PATCH] [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 --- scripts/cmake/vcpkg_build_cmake.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cmake/vcpkg_build_cmake.cmake b/scripts/cmake/vcpkg_build_cmake.cmake index 5274c29da1..f5867a1b51 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