https://github.com/Kitware/CMake
Revision 8b12982653161773afbac1683cf4770d6d153b99 authored by Brad King on 07 August 2020, 14:49:15 UTC, committed by Brad King on 07 August 2020, 14:49:19 UTC
2 parent s 20eeb40 + 4c939b0
Raw File
Tip revision: 8b12982653161773afbac1683cf4770d6d153b99 authored by Brad King on 07 August 2020, 14:49:15 UTC
Merge branch 'backport-test-FindPkgConfig-isolate-env'
Tip revision: 8b12982
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