diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-08-10 18:40:17 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-08-10 18:40:17 (GMT) |
commit | 491dddfbdeb7b958805e931b37783cca448eb8d8 (patch) | |
tree | 85f352d954423ebed6680f46f3f6e6d3b9118f0d /Tests/BootstrapTest.cmake | |
parent | d8f7a05b372f36c62e770dac37f5641c7ce0780b (diff) | |
download | CMake-491dddfbdeb7b958805e931b37783cca448eb8d8.zip CMake-491dddfbdeb7b958805e931b37783cca448eb8d8.tar.gz CMake-491dddfbdeb7b958805e931b37783cca448eb8d8.tar.bz2 |
Bootstrap: Add support for Ninja
Diffstat (limited to 'Tests/BootstrapTest.cmake')
-rw-r--r-- | Tests/BootstrapTest.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tests/BootstrapTest.cmake b/Tests/BootstrapTest.cmake index 07a65bf..137de78 100644 --- a/Tests/BootstrapTest.cmake +++ b/Tests/BootstrapTest.cmake @@ -1,12 +1,15 @@ file(MAKE_DIRECTORY "${bin_dir}") include(ProcessorCount) ProcessorCount(nproc) +if(generator MATCHES "Ninja") + set(ninja_arg --generator=Ninja) +endif() if(NOT nproc EQUAL 0) set(parallel_arg --parallel=${nproc}) endif() -message(STATUS "running bootstrap: ${bootstrap} ${parallel_arg}") +message(STATUS "running bootstrap: ${bootstrap} ${ninja_arg} ${parallel_arg}") execute_process( - COMMAND ${bootstrap} ${parallel_arg} + COMMAND ${bootstrap} ${ninja_arg} ${parallel_arg} WORKING_DIRECTORY "${bin_dir}" RESULT_VARIABLE result ) |