CTestTest2: Avoid running purify unless requested

This commit is contained in:
David Cole 2011-01-27 14:36:14 -05:00
parent 451c5f61c2
commit 2b082aa353
1 changed files with 6 additions and 7 deletions

View File

@ -15,14 +15,13 @@ SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@") SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@") SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}") SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
# for unix purify has to be used as a linker, and
# will not work with ctest. So disable it so # By default, CTESTTEST2_USE_PURIFY is not defined. If you want to run purify
# that it is not attempted. # on CTestTest2, set CTESTTEST2_USE_PURIFY to ON in CMake's cache.
IF(UNIX) SET(CTESTTEST2_USE_PURIFY @CTESTTEST2_USE_PURIFY@)
IF("${CTEST_MEMORYCHECK_COMMAND}" MATCHES purify) IF("${CTEST_MEMORYCHECK_COMMAND}" MATCHES purify AND NOT CTESTTEST2_USE_PURIFY)
SET(CTEST_MEMORYCHECK_COMMAND) SET(CTEST_MEMORYCHECK_COMMAND)
ENDIF() ENDIF()
ENDIF()
#CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY}) #CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})