Fix -j to export CMAKE_BUILD_PARALLEL_LEVEL. (#9195)

The existing support to use a specified number of cores for compilation was setting the variable
CMAKE_BUILD_PARALLEL_LEVEL but not exporting it, so CMake was not being affected, while the -1
option did work (as it was exporting the value).
This commit is contained in:
Juan Jesús García de Soria 2025-04-05 07:46:55 +01:00 committed by GitHub
parent 7f913f1cc2
commit c4d47abc52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ while getopts ":1j:bcdghirsu" opt; do
export CMAKE_BUILD_PARALLEL_LEVEL=1
;;
j )
CMAKE_BUILD_PARALLEL_LEVEL=$OPTARG
export CMAKE_BUILD_PARALLEL_LEVEL=$OPTARG
;;
b )
BUILD_DEBUG="1"