mirror of
https://github.com/reactos/CMake.git
synced 2024-12-20 10:38:08 +00:00
56ca8d4e63
Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
23 lines
782 B
CMake
23 lines
782 B
CMake
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
|
set(CTEST_PROJECT_NAME "CTestConfig")
|
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestConfig")
|
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script")
|
|
|
|
ctest_start(Experimental)
|
|
|
|
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
if(NOT rv STREQUAL 0)
|
|
message(FATAL_ERROR "*** error in ctest_configure ***")
|
|
endif()
|
|
|
|
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
if(NOT rv STREQUAL 0)
|
|
message(FATAL_ERROR "*** error in ctest_build ***")
|
|
endif()
|
|
|
|
ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
if(NOT rv STREQUAL 0)
|
|
message(FATAL_ERROR "*** error in ctest_test ***")
|
|
endif()
|