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.
|
# Setup testing if not being built as part of another project.
|
||||||
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||||
|
IF(BUILD_TESTING)
|
||||||
# C++ tests
|
# C++ tests
|
||||||
FOREACH(test
|
FOREACH(test
|
||||||
testSystemTools
|
testSystemTools
|
||||||
@ -624,7 +625,6 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
|||||||
SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
|
SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
|
||||||
ENDIF(EXECUTABLE_OUTPUT_PATH)
|
ENDIF(EXECUTABLE_OUTPUT_PATH)
|
||||||
|
|
||||||
IF(BUILD_TESTING)
|
|
||||||
|
|
||||||
SET(TEST_SYSTEMTOOLS_BIN_FILE
|
SET(TEST_SYSTEMTOOLS_BIN_FILE
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")
|
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user