Disable purify on unix, as it works differently and ctest can't use it.

This commit is contained in:
Bill Hoffman 2010-05-11 09:30:41 -04:00
parent ef6b505caa
commit aa30bd3f2a
2 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,14 @@ SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
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
# that it is not attempted.
IF(UNIX)
IF("${CTEST_MEMORYCHECK_COMMAND}" MATCHES purify)
SET(CTEST_MEMORYCHECK_COMMAND)
ENDIF()
ENDIF()
#CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})

View File

@ -25,6 +25,14 @@ SET(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
SET(CTEST_MEMORYCHECK_COMMAND "@MEMORYCHECK_COMMAND@")
SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
# for unix purify has to be used as a linker, and
# will not work with ctest. So disable it so
# that it is not attempted.
IF(UNIX)
IF("${CTEST_MEMORYCHECK_COMMAND}" MATCHES purify)
SET(CTEST_MEMORYCHECK_COMMAND)
ENDIF()
ENDIF()
SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
SET(CTEST_CHECKOUT_COMMAND "\"${CTEST_UPDATE_COMMAND}\" -q -z3 \"-d:pserver:anoncvs@www.cmake.org:/cvsroot/KWSys\" co -r CTest-Testing-Tag KWSys")