Revision 177052d6b8b4127a9d345830fb3d82384e9d5b50 authored by Alexandru Croitor on 08 July 2020, 22:27:25 UTC, committed by Brad King on 09 July 2020, 10:33:03 UTC
1 parent 8adfa16
Test.cmake.in
if (NOT TEST_SOURCE)
set(TEST_SOURCE "${TEST}")
endif ()
set(make_program "@CMake_TEST_EXPLICIT_MAKE_PROGRAM@")
if(make_program)
set(maybe_make_program "-DCMAKE_MAKE_PROGRAM=${make_program}")
endif()
set(_isMultiConfig "@_isMultiConfig@")
if(_isMultiConfig)
set(cfg_opts "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release\\;RelWithDebInfo")
else()
set(cfg_opts)
endif()
set(source_dir "@CMAKE_CURRENT_SOURCE_DIR@/${TEST_SOURCE}")
set(binary_dir "@CMAKE_CURRENT_BINARY_DIR@/${TEST}-build")
file(REMOVE_RECURSE "${binary_dir}")
file(MAKE_DIRECTORY "${binary_dir}")
execute_process(
COMMAND ${CMAKE_COMMAND} ${CMAKE_ARGS}
"${source_dir}" -G "@CMAKE_GENERATOR@"
-A "@CMAKE_GENERATOR_PLATFORM@"
-T "@CMAKE_GENERATOR_TOOLSET@"
${cfg_opts}
${maybe_make_program}
WORKING_DIRECTORY "${binary_dir}"
RESULT_VARIABLE result
)
if(result)
message(FATAL_ERROR "CMake failed to configure ${TEST}")
endif()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...