mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 18:27:23 +00:00
9db3116226
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
27 lines
883 B
CMake
27 lines
883 B
CMake
# Choose a configuration with which to drive CTest tests.
|
|
if(CTEST_CONFIGURATION_TYPE)
|
|
set(CTestTest_CONFIG "${CTEST_CONFIGURATION_TYPE}")
|
|
else()
|
|
set(CTestTest_CONFIG "@CTestTest_CONFIG@")
|
|
endif()
|
|
|
|
# Choose a configuration that was built if none is given.
|
|
if(NOT CTEST_CONFIGURATION_TYPE)
|
|
set(CTEST_CMD "@CMAKE_CTEST_COMMAND@@CMAKE_EXECUTABLE_SUFFIX@")
|
|
get_filename_component(CTEST_DIR "${CTEST_CMD}" PATH)
|
|
get_filename_component(CTEST_EXE "${CTEST_CMD}" NAME)
|
|
foreach(cfg Release Debug MinSizeRel RelWithDebInfo)
|
|
if(NOT CTEST_CONFIGURATION_TYPE)
|
|
if(EXISTS "${CTEST_DIR}/${cfg}/${CTEST_EXE}")
|
|
set(CTEST_CONFIGURATION_TYPE ${cfg})
|
|
endif()
|
|
endif()
|
|
endforeach()
|
|
if(NOT CTEST_CONFIGURATION_TYPE)
|
|
set(CTEST_CONFIGURATION_TYPE NoConfig)
|
|
endif()
|
|
message("Guessing configuration ${CTEST_CONFIGURATION_TYPE}")
|
|
endif()
|
|
|
|
@TEST_HOME_ENV_CODE@
|