From 64389317f87398138b193cd76edc17da096b52bf Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 28 Nov 2006 09:49:53 -0500 Subject: ENH: use the built cmake for file compare as older versions of cmake may not support this --- Source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12