summaryrefslogtreecommitdiffstats
path: root/Modules/Dart.cmake
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:47:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit77543bde41b0e52c3959016698b529835945d62d (patch)
treeff63e5fbec326c4a5d821e7496c6d2cb52f75b92 /Modules/Dart.cmake
parent7bbaa4283de26864b2e55e819db0884771585467 (diff)
downloadCMake-77543bde41b0e52c3959016698b529835945d62d.zip
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.gz
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.bz2
Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake80
1 files changed, 40 insertions, 40 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index e85f093..97addcc 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -3,10 +3,10 @@
# It supports using the old Dart 1 Tcl client for driving dashboard
# submissions as well as testing with CTest. This module should be included
# in the CMakeLists.txt file at the top of a project. Typical usage:
-# INCLUDE(Dart)
-# IF(BUILD_TESTING)
+# include(Dart)
+# if(BUILD_TESTING)
# # ... testing related CMake code ...
-# ENDIF(BUILD_TESTING)
+# endif(BUILD_TESTING)
# The BUILD_TESTING option is created by the Dart module to determine
# whether testing support should be enabled. The default is ON.
@@ -32,10 +32,10 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
-OPTION(BUILD_TESTING "Build the testing tree." ON)
+option(BUILD_TESTING "Build the testing tree." ON)
-IF(BUILD_TESTING)
- FIND_PACKAGE(Dart QUIET)
+if(BUILD_TESTING)
+ find_package(Dart QUIET)
#
# Section #1:
@@ -44,25 +44,25 @@ IF(BUILD_TESTING)
# on the client and configure site name and build name.
#
- SET(RUN_FROM_DART 1)
- INCLUDE(CTest)
- SET(RUN_FROM_DART)
+ set(RUN_FROM_DART 1)
+ include(CTest)
+ set(RUN_FROM_DART)
- FIND_PROGRAM(COMPRESSIONCOMMAND NAMES gzip compress zip
+ find_program(COMPRESSIONCOMMAND NAMES gzip compress zip
DOC "Path to program used to compress files for transfer to the dart server")
- FIND_PROGRAM(GUNZIPCOMMAND gunzip DOC "Path to gunzip executable")
- FIND_PROGRAM(JAVACOMMAND java DOC "Path to java command, used by the Dart server to create html.")
- OPTION(DART_VERBOSE_BUILD "Show the actual output of the build, or if off show a . for each 1024 bytes."
+ find_program(GUNZIPCOMMAND gunzip DOC "Path to gunzip executable")
+ find_program(JAVACOMMAND java DOC "Path to java command, used by the Dart server to create html.")
+ option(DART_VERBOSE_BUILD "Show the actual output of the build, or if off show a . for each 1024 bytes."
OFF)
- OPTION(DART_BUILD_ERROR_REPORT_LIMIT "Limit of reported errors, -1 reports all." -1 )
- OPTION(DART_BUILD_WARNING_REPORT_LIMIT "Limit of reported warnings, -1 reports all." -1 )
+ option(DART_BUILD_ERROR_REPORT_LIMIT "Limit of reported errors, -1 reports all." -1 )
+ option(DART_BUILD_WARNING_REPORT_LIMIT "Limit of reported warnings, -1 reports all." -1 )
- SET(VERBOSE_BUILD ${DART_VERBOSE_BUILD})
- SET(BUILD_ERROR_REPORT_LIMIT ${DART_BUILD_ERROR_REPORT_LIMIT})
- SET(BUILD_WARNING_REPORT_LIMIT ${DART_BUILD_WARNING_REPORT_LIMIT})
- SET (DELIVER_CONTINUOUS_EMAIL "Off" CACHE BOOL "Should Dart server send email when build errors are found in Continuous builds?")
+ set(VERBOSE_BUILD ${DART_VERBOSE_BUILD})
+ set(BUILD_ERROR_REPORT_LIMIT ${DART_BUILD_ERROR_REPORT_LIMIT})
+ set(BUILD_WARNING_REPORT_LIMIT ${DART_BUILD_WARNING_REPORT_LIMIT})
+ set (DELIVER_CONTINUOUS_EMAIL "Off" CACHE BOOL "Should Dart server send email when build errors are found in Continuous builds?")
- MARK_AS_ADVANCED(
+ mark_as_advanced(
COMPRESSIONCOMMAND
DART_BUILD_ERROR_REPORT_LIMIT
DART_BUILD_WARNING_REPORT_LIMIT
@@ -73,10 +73,10 @@ IF(BUILD_TESTING)
JAVACOMMAND
)
- 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")
+ 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")
#
# Section #2:
@@ -84,18 +84,18 @@ IF(BUILD_TESTING)
# Make necessary directories and configure testing scripts
#
# find a tcl shell command
- IF(HAVE_DART)
- FIND_PACKAGE(Tclsh)
- ENDIF(HAVE_DART)
+ if(HAVE_DART)
+ find_package(Tclsh)
+ endif(HAVE_DART)
- IF (HAVE_DART)
+ if (HAVE_DART)
# make directories in the binary tree
- FILE(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/Testing/HTML/TestingResults/Dashboard"
+ file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/Testing/HTML/TestingResults/Dashboard"
"${PROJECT_BINARY_DIR}/Testing/HTML/TestingResults/Sites/${SITE}/${BUILDNAME}")
# configure files
- CONFIGURE_FILE(
+ configure_file(
"${DART_ROOT}/Source/Client/Dart.conf.in"
"${PROJECT_BINARY_DIR}/DartConfiguration.tcl" )
@@ -107,16 +107,16 @@ IF(BUILD_TESTING)
#
# add testing targets
- 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)
-
- SET(RUN_FROM_CTEST_OR_DART 1)
- INCLUDE(CTestTargets)
- SET(RUN_FROM_CTEST_OR_DART)
-ENDIF(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)
+
+ set(RUN_FROM_CTEST_OR_DART 1)
+ include(CTestTargets)
+ set(RUN_FROM_CTEST_OR_DART)
+endif(BUILD_TESTING)
#
# End of Dart.cmake