summaryrefslogtreecommitdiffstats
path: root/Modules/Dart.cmake
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-07-10 15:56:26 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-07-10 15:56:26 (GMT)
commit2ba4fc285be5608aad0f00f2e34994c03340241f (patch)
treeeb419f62d596e83d8ee1398a7ef837ce8db2adae /Modules/Dart.cmake
parente5a3ad77e51645ae1f1a368abdaed4776a4f51cc (diff)
downloadCMake-2ba4fc285be5608aad0f00f2e34994c03340241f.zip
CMake-2ba4fc285be5608aad0f00f2e34994c03340241f.tar.gz
CMake-2ba4fc285be5608aad0f00f2e34994c03340241f.tar.bz2
Checking if tclshcommand is defined before running it.
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake55
1 files changed, 30 insertions, 25 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index 05503dc..8d60603 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -76,32 +76,37 @@ IF(BUILD_TESTING)
#
# add testing targets
- ADD_CUSTOM_TARGET(Nightly
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Start Build Test Submit)
- ADD_CUSTOM_TARGET(NightlyBuild
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Start Build)
- ADD_CUSTOM_TARGET(NightlyTest
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Test)
- ADD_CUSTOM_TARGET(NightlyCoverage
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Coverage)
- ADD_CUSTOM_TARGET(NightlySubmit
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Submit)
- ADD_CUSTOM_TARGET(NightlyDashboardStart
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly DashboardStart)
- ADD_CUSTOM_TARGET(NightlyDashboardEnd
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly DashboardEnd)
- ADD_CUSTOM_TARGET(ExperimentalBuild
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Start Build)
- ADD_CUSTOM_TARGET(ExperimentalTest
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Test)
- ADD_CUSTOM_TARGET(ExperimentalCoverage
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Coverage)
- ADD_CUSTOM_TARGET(ExperimentalSubmit
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Submit)
- ADD_CUSTOM_TARGET(Experimental
- ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Start Build Test Submit)
+ IF(TCLSHCOMMAND)
+ ADD_CUSTOM_TARGET(Nightly
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Start Build Test Submit)
+ ADD_CUSTOM_TARGET(NightlyBuild
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Start Build)
+ ADD_CUSTOM_TARGET(NightlyTest
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Test)
+ ADD_CUSTOM_TARGET(NightlyCoverage
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Coverage)
+ ADD_CUSTOM_TARGET(NightlySubmit
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly Submit)
+ ADD_CUSTOM_TARGET(NightlyDashboardStart
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly DashboardStart)
+ ADD_CUSTOM_TARGET(NightlyDashboardEnd
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Nightly DashboardEnd)
+ ADD_CUSTOM_TARGET(ExperimentalBuild
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Start Build)
+ ADD_CUSTOM_TARGET(ExperimentalTest
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Test)
+ ADD_CUSTOM_TARGET(ExperimentalCoverage
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Coverage)
+ ADD_CUSTOM_TARGET(ExperimentalSubmit
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Submit)
+ ADD_CUSTOM_TARGET(Experimental
+ ${TCLSHCOMMAND} ${DART_ROOT}/Source/Client/DashboardManager.tcl ${PROJECT_BINARY_DIR}/DartConfiguration.tcl Experimental Start Build Test Submit)
+
+ ENABLE_TESTING()
+ ELSE(TCLSHCOMMAND)
+ MESSAGE("Could not find TCLSHCOMMAND, disabling testing." "Error")
+ ENDIF(TCLSHCOMMAND)
- ENABLE_TESTING()
ENDIF (DART_ROOT)
ENDIF(BUILD_TESTING)