mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
e3770c56a8
Determine the number of processors and provide it to the bootstrap script. Also make sure this test does not run parallel with other tests.
16 lines
406 B
CMake
16 lines
406 B
CMake
file(MAKE_DIRECTORY "${bin_dir}")
|
|
include(ProcessorCount)
|
|
ProcessorCount(nproc)
|
|
if(NOT nproc EQUAL 0)
|
|
set(parallel_arg --parallel=${nproc})
|
|
endif()
|
|
message(STATUS "running bootstrap: ${bootstrap} ${parallel_arg}")
|
|
execute_process(
|
|
COMMAND ${bootstrap} ${parallel_arg}
|
|
WORKING_DIRECTORY "${bin_dir}"
|
|
RESULT_VARIABLE result
|
|
)
|
|
if(result)
|
|
message(FATAL_ERROR "bootstrap failed: ${result}")
|
|
endif()
|