summaryrefslogtreecommitdiffstats
path: root/Modules/Dart.cmake
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 /Modules/Dart.cmake
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 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index 97addcc..bd744b0 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -6,7 +6,7 @@
# include(Dart)
# if(BUILD_TESTING)
# # ... testing related CMake code ...
-# endif(BUILD_TESTING)
+# endif()
# The BUILD_TESTING option is created by the Dart module to determine
# whether testing support should be enabled. The default is ON.
@@ -76,7 +76,7 @@ if(BUILD_TESTING)
set(HAVE_DART)
if(EXISTS "${DART_ROOT}/Source/Client/Dart.conf.in")
set(HAVE_DART 1)
- endif(EXISTS "${DART_ROOT}/Source/Client/Dart.conf.in")
+ endif()
#
# Section #2:
@@ -86,7 +86,7 @@ if(BUILD_TESTING)
# find a tcl shell command
if(HAVE_DART)
find_package(Tclsh)
- endif(HAVE_DART)
+ endif()
if (HAVE_DART)
@@ -110,13 +110,13 @@ if(BUILD_TESTING)
set(DART_EXPERIMENTAL_NAME Experimental)
if(DART_EXPERIMENTAL_USE_PROJECT_NAME)
set(DART_EXPERIMENTAL_NAME "${DART_EXPERIMENTAL_NAME}${PROJECT_NAME}")
- endif(DART_EXPERIMENTAL_USE_PROJECT_NAME)
- endif (HAVE_DART)
+ endif()
+ endif ()
set(RUN_FROM_CTEST_OR_DART 1)
include(CTestTargets)
set(RUN_FROM_CTEST_OR_DART)
-endif(BUILD_TESTING)
+endif()
#
# End of Dart.cmake