summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:50:14 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit9db3116226cb99fcf54e936c833953abcde9b729 (patch)
treebd755ed9e616bbf1482a894bc7946980d81b7703 /Tests/CMakeTests/GetPrerequisitesTest.cmake.in
parent77543bde41b0e52c3959016698b529835945d62d (diff)
downloadCMake-9db3116226cb99fcf54e936c833953abcde9b729.zip
CMake-9db3116226cb99fcf54e936c833953abcde9b729.tar.gz
CMake-9db3116226cb99fcf54e936c833953abcde9b729.tar.bz2
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
Diffstat (limited to 'Tests/CMakeTests/GetPrerequisitesTest.cmake.in')
-rw-r--r--Tests/CMakeTests/GetPrerequisitesTest.cmake.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/CMakeTests/GetPrerequisitesTest.cmake.in b/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
index daf467b..89ca735 100644
--- a/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
+++ b/Tests/CMakeTests/GetPrerequisitesTest.cmake.in
@@ -58,7 +58,7 @@ function(stresstest_list_prerequisites file)
message(STATUS "=============================================================================")
message(STATUS "")
-endfunction(stresstest_list_prerequisites)
+endfunction()
function(test_cmake_executables)
@@ -68,7 +68,7 @@ function(test_cmake_executables)
get_filename_component(cmake_bin_dir "${CMAKE_COMMAND}" PATH)
list_prerequisites_by_glob(GLOB "${cmake_bin_dir}/*" 0 0 1)
-endfunction(test_cmake_executables)
+endfunction()
message(STATUS "=============================================================================")
@@ -93,7 +93,7 @@ if(do_testdefaults)
message(STATUS "")
list_prerequisites("${CMAKE_COMMAND}")
message(STATUS "")
-endif(do_testdefaults)
+endif()
set(do_stresstest 0)
@@ -103,7 +103,7 @@ if(do_stresstest)
message(STATUS "")
stresstest_list_prerequisites("${CMAKE_COMMAND}")
message(STATUS "")
-endif(do_stresstest)
+endif()
test_cmake_executables()
@@ -141,7 +141,7 @@ message(STATUS "")
get_cmake_property(vs VARIABLES)
foreach(v ${vs})
message(STATUS "${v}='${${v}}'")
-endforeach(v)
+endforeach()
message(STATUS "")
message(STATUS "=============================================================================")