summaryrefslogtreecommitdiffstats
path: root/Modules/FindSquish.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/FindSquish.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/FindSquish.cmake')
-rw-r--r--Modules/FindSquish.cmake28
1 files changed, 14 insertions, 14 deletions
diff --git a/Modules/FindSquish.cmake b/Modules/FindSquish.cmake
index 0127edc..b44ba70 100644
--- a/Modules/FindSquish.cmake
+++ b/Modules/FindSquish.cmake
@@ -20,7 +20,7 @@
# find_package(Squish)
# if (SQUISH_FOUND)
# SQUISH_ADD_TEST(myTestName myApplication testSuiteName testCaseName)
-# endif (SQUISH_FOUND)
+# endif ()
#
#=============================================================================
@@ -49,7 +49,7 @@ if(NOT SQUISH_INSTALL_DIR)
set(SQUISH_INSTALL_DIR_SEARCH "")
foreach(dir ${SQUISH_INSTALL_DIR_SEARCH2})
set(SQUISH_INSTALL_DIR_SEARCH ${SQUISH_INSTALL_DIR_SEARCH} "${dir}/../lib/fltk")
- endforeach(dir)
+ endforeach()
string(REPLACE "//" "/" SQUISH_INSTALL_DIR_SEARCH "${SQUISH_INSTALL_DIR_SEARCH}")
# Look for an installation
@@ -65,7 +65,7 @@ if(NOT SQUISH_INSTALL_DIR)
DOC "The ${SQUISH_INSTALL_DIR_STRING}"
)
-endif(NOT SQUISH_INSTALL_DIR)
+endif()
# search for the executables
if(SQUISH_INSTALL_DIR)
@@ -74,37 +74,37 @@ if(SQUISH_INSTALL_DIR)
# find the client program
if(NOT SQUISH_CLIENT_EXECUTABLE)
find_program(SQUISH_CLIENT_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishrunner DOC "The ${SQUISH_CLIENT_EXECUTABLE_STRING}")
- endif(NOT SQUISH_CLIENT_EXECUTABLE)
+ endif()
# find the server program
if(NOT SQUISH_SERVER_EXECUTABLE)
find_program(SQUISH_SERVER_EXECUTABLE ${SQUISH_INSTALL_DIR}/bin/squishserver DOC "The ${SQUISH_SERVER_EXECUTABLE_STRING}")
- endif(NOT SQUISH_SERVER_EXECUTABLE)
+ endif()
-else(SQUISH_INSTALL_DIR)
+else()
set(SQUISH_INSTALL_DIR_FOUND 0)
-endif(SQUISH_INSTALL_DIR)
+endif()
# record if executables are set
if(SQUISH_CLIENT_EXECUTABLE)
set(SQUISH_CLIENT_EXECUTABLE_FOUND 1)
-else(SQUISH_CLIENT_EXECUTABLE)
+else()
set(SQUISH_CLIENT_EXECUTABLE_FOUND 0)
-endif(SQUISH_CLIENT_EXECUTABLE)
+endif()
if(SQUISH_SERVER_EXECUTABLE)
set(SQUISH_SERVER_EXECUTABLE_FOUND 1)
-else(SQUISH_SERVER_EXECUTABLE)
+else()
set(SQUISH_SERVER_EXECUTABLE_FOUND 0)
-endif(SQUISH_SERVER_EXECUTABLE)
+endif()
# record if Squish was found
set(SQUISH_FOUND 1)
foreach(var SQUISH_INSTALL_DIR_FOUND SQUISH_CLIENT_EXECUTABLE_FOUND SQUISH_SERVER_EXECUTABLE_FOUND)
if(NOT ${var})
set(SQUISH_FOUND 0)
- endif(NOT ${var})
-endforeach(var)
+ endif()
+endforeach()
macro(SQUISH_ADD_TEST testName testAUT testCase envVars testWraper)
add_test(${testName}
@@ -121,5 +121,5 @@ macro(SQUISH_ADD_TEST testName testAUT testCase envVars testWraper)
set_tests_properties(${testName}
PROPERTIES FAIL_REGULAR_EXPRESSION "FAILED;ERROR;FATAL"
)
-endmacro(SQUISH_ADD_TEST)
+endmacro()