diff options
| author | lakinwecker <lakin.wecker@gmail.com> | 2019-09-28 12:32:15 -0600 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-09-28 11:32:15 -0700 |
| commit | 453ffa5aad5cb110f1c4b233bd0876154276839c (patch) | |
| tree | b64dfc1339452034d95a585f029e942c678165b7 | |
| parent | 60c5814063629d9911a36ef1abd77f4ba9af8e14 (diff) | |
| download | vcpkg-453ffa5aad5cb110f1c4b233bd0876154276839c.tar.gz vcpkg-453ffa5aad5cb110f1c4b233bd0876154276839c.zip | |
Speed up the gdal build by using all available cores for make. (#8375)
* Speed up the gdal build by using all available cores for make.
* Also build the debug build with all cores.
* Addresses the review comments.
Use VCPKG_CONCURRENCY so the normal vcpkg concurrency controls apply.
Use vcpkg_execute_build_process and NO_PARALLEL_COMMAND which allows
for builds to be retried in some cases where parallel builds might fail.
| -rw-r--r-- | ports/gdal/portfile.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ports/gdal/portfile.cmake b/ports/gdal/portfile.cmake index a336e1f1e..0e836e0d2 100644 --- a/ports/gdal/portfile.cmake +++ b/ports/gdal/portfile.cmake @@ -352,8 +352,9 @@ elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" OR VCPKG_CMAKE_SYSTEM_NAME STRE ) message(STATUS "Building ${TARGET_TRIPLET}-rel") - vcpkg_execute_required_process( - COMMAND make + vcpkg_execute_build_process( + COMMAND make -j ${VCPKG_CONCURRENCY} + NO_PARALLEL_COMMAND make WORKING_DIRECTORY ${SOURCE_PATH_RELEASE} LOGNAME make-build-${TARGET_TRIPLET}-release ) @@ -388,8 +389,9 @@ elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" OR VCPKG_CMAKE_SYSTEM_NAME STRE ) message(STATUS "Building ${TARGET_TRIPLET}-dbg") - vcpkg_execute_required_process( - COMMAND make + vcpkg_execute_build_process( + COMMAND make -j ${VCPKG_CONCURRENCY} + NO_PARALLEL_COMMAND make WORKING_DIRECTORY ${SOURCE_PATH_DEBUG} LOGNAME make-build-${TARGET_TRIPLET}-debug ) |
