CMake/Tests/SimpleExclude/run.cmake.in
Kitware Robot 9db3116226 Remove CMake-language block-end command arguments
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
2012-08-13 14:19:16 -04:00

14 lines
513 B
CMake

set(t4_name "\"@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t4\"")
exec_program("${t4_name}" RETURN_VALUE "t4_var")
message("T4 ${t4_name} resulted ${t4_var}")
set(t9_name "\"@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t9\"")
exec_program("${t9_name}" RETURN_VALUE "t9_var")
message("T9 ${t9_name} resulted ${t9_var}")
if ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" )
message("Everything is good, Yoshimi won...")
else ()
message(FATAL_ERROR "Yoshimi lost... The evil pink robots will take over the world")
endif ()