BootstrapTest.cmake 406 B

123456789101112131415
  1. file(MAKE_DIRECTORY "${bin_dir}")
  2. include(ProcessorCount)
  3. ProcessorCount(nproc)
  4. if(NOT nproc EQUAL 0)
  5. set(parallel_arg --parallel=${nproc})
  6. endif()
  7. message(STATUS "running bootstrap: ${bootstrap} ${parallel_arg}")
  8. execute_process(
  9. COMMAND ${bootstrap} ${parallel_arg}
  10. WORKING_DIRECTORY "${bin_dir}"
  11. RESULT_VARIABLE result
  12. )
  13. if(result)
  14. message(FATAL_ERROR "bootstrap failed: ${result}")
  15. endif()