diff options
author | Kitware Robot <kwrobot@kitware.com> | 2012-08-13 13:50:14 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-13 14:19:16 -0400 |
commit | 9db3116226cb99fcf54e936c833953abcde9b729 (patch) | |
tree | bd755ed9e616bbf1482a894bc7946980d81b7703 /Modules/Dart.cmake | |
parent | 77543bde41b0e52c3959016698b529835945d62d (diff) | |
download | cmake-9db3116226cb99fcf54e936c833953abcde9b729.tar.gz |
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.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake index 97addcc2a9..bd744b0032 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 |