Checking if tclshcommand is defined before running it.
This commit is contained in:
parent
e5a3ad77e5
commit
2ba4fc285b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue