https://github.com/Kitware/CMake
Revision a03780c4c36e6402731f65e0e43a115caf85365c authored by Brad King on 20 November 2023, 14:10:13 UTC, committed by Brad King on 20 November 2023, 14:10:13 UTC
2 parent s d9c8a3a + 13874b2
Raw File
Tip revision: a03780c4c36e6402731f65e0e43a115caf85365c authored by Brad King on 20 November 2023, 14:10:13 UTC
Merge branch 'release-3.27' into release-3.28
Tip revision: a03780c
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