[vcpkg/msbuild] parellel build (#19718)

* [vcpkg/msbuild] parellel build

* [vcpkg/msbuild] respects VCPKG_MAX_CONCURRENCY

* [vcpkg/msbuild] handle unset VCPKG_MAX_CONCURRENCY

* [vcpkg/msbuild] uses VCPKG_CONCURRENCY

* [vcpkg/msbuild] MultiProcMaxCount=...

* [vcpkg/msbuild] EnforceProcessCountAcrossBuilds

EnforceProcessCountAcrossBuilds=true (must have value)

* [vcpkg/msbuild] no missing )

* [vcpkg/msbuild] no extra ' 's

Co-authored-by: mheyman <mheyman@localdomain>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Michael Heyman 2021-09-30 19:39:14 -04:00 committed by GitHub
parent 25e38b64d3
commit 7e5cfccf60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,10 @@ function(vcpkg_install_msbuild)
"/p:VcpkgTriplet=${TARGET_TRIPLET}"
"/p:VcpkgInstalledDir=${_VCPKG_INSTALLED_DIR}"
"/p:VcpkgManifestInstall=false"
"/m"
"/p:UseMultiToolTask=true"
"/p:MultiProcMaxCount=${VCPKG_CONCURRENCY}"
"/p:EnforceProcessCountAcrossBuilds=true"
"/m:${VCPKG_CONCURRENCY}"
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")