https://github.com/Kitware/CMake
Raw File
Tip revision: 8bd6af0d6386d1e0b26ff594b7d42621d67b5985 authored by Brad King on 02 May 2017, 12:40:39 UTC
CMake 3.8.1
Tip revision: 8bd6af0
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