https://github.com/Kitware/CMake
Raw File
Tip revision: 372de3f8039f69b3a2edcf7120083ec4097f8bd3 authored by Brad King on 27 June 2017, 14:59:58 UTC
CMake 3.9.0-rc5
Tip revision: 372de3f
BootstrapTest.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()
back to top