summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-01 17:10:33 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-01 17:10:33 (GMT)
commit1b0ee0bd91226487d6a56ce54bf560972f5ea277 (patch)
tree76eb460d0c79bea8f9a72e6f19f3e670d45a52c0 /Tests
parent6e9ec4598d0505b179012ba5d6d77b1b161a334a (diff)
downloadCMake-1b0ee0bd91226487d6a56ce54bf560972f5ea277.zip
CMake-1b0ee0bd91226487d6a56ce54bf560972f5ea277.tar.gz
CMake-1b0ee0bd91226487d6a56ce54bf560972f5ea277.tar.bz2
ENH: Use existing CTest and cmake
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestTest/test.cmake.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/CTestTest/test.cmake.in b/Tests/CTestTest/test.cmake.in
index 3fc859f..b84bdcc 100644
--- a/Tests/CTestTest/test.cmake.in
+++ b/Tests/CTestTest/test.cmake.in
@@ -13,13 +13,15 @@ SET (CTEST_BINARY_NAME kwsysBin)
# which ctest command to use for running the dashboard
SET (CTEST_COMMAND
- "\"@CMAKE_CTEST_COMMAND@\" -D Experimental -A ${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}"
+ "\"${CTEST_EXECUTABLE_NAME}\" -D Experimental -A \"${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}\""
)
# what cmake command to use for configuring this dashboard
-SET (CTEST_CMAKE_COMMAND
- "\"@CMAKE_COMMAND@\""
- )
+GET_FILENAME_COMPONENT(CTEST_EXECUTABLE_PATH "${CTEST_EXECUTABLE_NAME}" PATH)
+SET(CTEST_CMAKE_COMMAND "${CTEST_EXECUTABLE_PATH}/cmake")
+
+MESSAGE("CTest executable: ${CTEST_EXECUTABLE_NAME}")
+MESSAGE("CMake executable: ${CTEST_CMAKE_COMMAND}")
####################################################################