mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:31:27 +08:00
[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:
parent
501e44e02c
commit
6d6c664236
@ -41,6 +41,7 @@ function(vcpkg_build_cmake)
|
|||||||
|
|
||||||
if(_VCPKG_CMAKE_GENERATOR MATCHES "Ninja")
|
if(_VCPKG_CMAKE_GENERATOR MATCHES "Ninja")
|
||||||
set(BUILD_ARGS "-v") # verbose output
|
set(BUILD_ARGS "-v") # verbose output
|
||||||
|
set(PARALLEL_ARG "-j${VCPKG_CONCURRENCY}")
|
||||||
set(NO_PARALLEL_ARG "-j1")
|
set(NO_PARALLEL_ARG "-j1")
|
||||||
elseif(_VCPKG_CMAKE_GENERATOR MATCHES "Visual Studio")
|
elseif(_VCPKG_CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
set(BUILD_ARGS
|
set(BUILD_ARGS
|
||||||
|
Loading…
Reference in New Issue
Block a user