Checking if tclshcommand is defined before running it.

This commit is contained in:
Berk Geveci 2001-07-10 11:56:26 -04:00
parent e5a3ad77e5
commit 2ba4fc285b
1 changed files with 30 additions and 25 deletions

View File

@ -76,6 +76,7 @@ IF(BUILD_TESTING)
#
# add testing targets
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
@ -102,6 +103,10 @@ IF(BUILD_TESTING)
${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)
ENDIF (DART_ROOT)
ENDIF(BUILD_TESTING)