COMP: Do not build tests if build testing is off
This commit is contained in:
parent
0a3571306f
commit
6e675ce602
@ -599,6 +599,7 @@ ENDIF(KWSYS_USE_Process)
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup testing if not being built as part of another project.
|
||||
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||
IF(BUILD_TESTING)
|
||||
# C++ tests
|
||||
FOREACH(test
|
||||
testSystemTools
|
||||
@ -624,7 +625,6 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||
SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
|
||||
ENDIF(EXECUTABLE_OUTPUT_PATH)
|
||||
|
||||
IF(BUILD_TESTING)
|
||||
|
||||
SET(TEST_SYSTEMTOOLS_BIN_FILE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")
|
||||
|
Loading…
x
Reference in New Issue
Block a user