Revision dfa5401af6d9cd5ba21b68d532d84bdd23517ea4 authored by Brad King on 14 June 2022, 18:20:32 UTC, committed by Brad King on 14 June 2022, 18:21:01 UTC
1 parent 3b4bd01
Raw File
BootstrapTest.cmake
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} ${ninja_arg} ${parallel_arg}")
execute_process(
  COMMAND ${bootstrap} ${ninja_arg} ${parallel_arg}
  WORKING_DIRECTORY "${bin_dir}"
  RESULT_VARIABLE result
  )
if(result)
  message(FATAL_ERROR "bootstrap failed: ${result}")
endif()
back to top