[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
This commit is contained in:
Jack·Boos·Yu 2020-09-26 05:17:05 -07:00 committed by GitHub
parent 501e44e02c
commit 6d6c664236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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