diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-28 14:49:53 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-28 14:49:53 (GMT) |
commit | 64389317f87398138b193cd76edc17da096b52bf (patch) | |
tree | 41de28e369b0a1f230223f9bffb62b6f8ec48cad | |
parent | 466dca006d30a6d31ef2bc957a940c18ec5f0738 (diff) | |
download | CMake-64389317f87398138b193cd76edc17da096b52bf.zip CMake-64389317f87398138b193cd76edc17da096b52bf.tar.gz CMake-64389317f87398138b193cd76edc17da096b52bf.tar.bz2 |
ENH: use the built cmake for file compare as older versions of cmake may not support this
-rw-r--r-- | Source/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index ba5051a..63db833 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -365,6 +365,7 @@ IF(BUILD_TESTING) # and not the ctest from the cmake building and testing # cmake. SET(CMAKE_CTEST_COMMAND "${EXECUTABLE_OUTPUT_PATH}/ctest") + SET(CMAKE_CMAKE_COMMAND "${EXECUTABLE_OUTPUT_PATH}/cmake") # Should the long tests be run? OPTION(CMAKE_RUN_LONG_TESTS "Should the long tests be run (such as Bootstrap)." ON) @@ -398,7 +399,7 @@ IF(BUILD_TESTING) --build-generator ${CMAKE_TEST_GENERATOR} --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-project TargetName - --test-command ${CMAKE_COMMAND} -E compare_files + --test-command ${CMAKE_CMAKE_COMMAND} -E compare_files ${CMake_SOURCE_DIR}/Tests/TargetName/scripts/hello_world ${CMake_BINARY_DIR}/Tests/TargetName/scripts/hello_world) |