diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-15 22:26:00 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-15 22:26:00 (GMT) |
commit | 5b232ded151fc22144978b74cdaf7031d466e527 (patch) | |
tree | b20c096cdc01697dd5bd3a3a2a5df1dc95e4c263 /Modules | |
parent | ce8a34907a47b06f62f27aff1e1d6cb8dc9ee76e (diff) | |
download | CMake-5b232ded151fc22144978b74cdaf7031d466e527.zip CMake-5b232ded151fc22144978b74cdaf7031d466e527.tar.gz CMake-5b232ded151fc22144978b74cdaf7031d466e527.tar.bz2 |
ENH: Add initial memory check support which works for Valgrind
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Dart.cmake | 20 | ||||
-rw-r--r-- | Modules/DartConfiguration.tcl.in | 2 |
2 files changed, 20 insertions, 2 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake index cfe6fdb..b5eb9c7 100644 --- a/Modules/Dart.cmake +++ b/Modules/Dart.cmake @@ -69,7 +69,9 @@ IF(BUILD_TESTING) DOC "Path to program used to compress files for transfer to the dart server") FIND_PROGRAM(GUNZIPCOMMAND gunzip DOC "Path to gunzip executable") FIND_PROGRAM(JAVACOMMAND java DOC "Path to java command, used by the Dart server to create html.") - FIND_PROGRAM(PURIFYCOMMAND purify + FIND_PROGRAM(MEMORYCHECK_COMMAND + NAMES purify valgrind boundscheck + PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Rational Software\\Purify\\Setup;InstallFolder]" DOC "Path to Rational purify command, used for memory error detection." ) @@ -95,11 +97,25 @@ IF(BUILD_TESTING) ELSE(WIN32) SET(DART_NAME_COMPONENT "NAME") ENDIF(WIN32) + SET(BUILD_NAME_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}") + IF(WIN32) + SET(BUILD_NAME_SYSTEM_NAME "Win32") + ENDIF(WIN32) IF(UNIX OR BORLAND) GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT}) ELSE(UNIX OR BORLAND) GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_BUILD_TOOL}" ${DART_NAME_COMPONENT}) ENDIF(UNIX OR BORLAND) + IF(DART_CXX_NAME MATCHES "msdev") + SET(DART_CXX_NAME "vs60") + ENDIF(DART_CXX_NAME MATCHES "msdev") + IF(DART_CXX_NAME MATCHES "devenv") + IF(CMAKE_GENERATOR MATCHES "^Visual Studio 7$") + SET(DART_CXX_NAME "vs70") + ELSE(CMAKE_GENERATOR MATCHES "^Visual Studio 7$") + SET(DART_CXX_NAME "vs71") + ENDIF(CMAKE_GENERATOR MATCHES "^Visual Studio 7$") + ENDIF(DART_CXX_NAME MATCHES "devenv") SET(BUILDNAME "${CMAKE_SYSTEM_NAME}-${DART_CXX_NAME}") MESSAGE(STATUS "Using Buildname: ${BUILDNAME}") ENDIF(NOT BUILDNAME) @@ -140,7 +156,7 @@ IF(BUILD_TESTING) # configure files CONFIGURE_FILE( - ${DART_ROOT}/Source/Client/Utility.conf.in + ${DART_ROOT}/Source/Client/Dart.conf.in ${PROJECT_BINARY_DIR}/DartConfiguration.tcl ) # diff --git a/Modules/DartConfiguration.tcl.in b/Modules/DartConfiguration.tcl.in index aaed45a..25d6f26 100644 --- a/Modules/DartConfiguration.tcl.in +++ b/Modules/DartConfiguration.tcl.in @@ -40,6 +40,8 @@ ScpCommand: @SCPCOMMAND@ PurifyCommand: @PURIFYCOMMAND@ ValgrindCommand: @VALGRIND_COMMAND@ ValgrindCommandOptions: @VALGRIND_COMMAND_OPTIONS@ +MemoryCheckCommand: @MEMORYCHECK_COMMAND@ +MemoryCheckCommandOptions: @MEMORYCHECK_COMMAND_OPTIONS@ CoverageCommand: @COVERAGE_COMMAND@ # Compression commands GunzipCommand: @GUNZIPCOMMAND@ |