summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-15 20:50:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-15 20:50:55 (GMT)
commit6a312b9746f2239f2033636eac2b1c9f9ae4330f (patch)
tree435cc7aa67308fc01bf2148bb9a9254368d4c0cf
parent3fc5ca34f95cf2100d2c197f7f9fa66c4cc6811c (diff)
downloadCMake-6a312b9746f2239f2033636eac2b1c9f9ae4330f.zip
CMake-6a312b9746f2239f2033636eac2b1c9f9ae4330f.tar.gz
CMake-6a312b9746f2239f2033636eac2b1c9f9ae4330f.tar.bz2
ENH: run the right cmake
-rw-r--r--Tests/CMakeBuildTest.cmake.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/CMakeBuildTest.cmake.in b/Tests/CMakeBuildTest.cmake.in
index 10abc9e..246757f 100644
--- a/Tests/CMakeBuildTest.cmake.in
+++ b/Tests/CMakeBuildTest.cmake.in
@@ -2,7 +2,8 @@
make_directory("@CMAKE_BUILD_TEST_BINARY_DIR@")
# run cmake in the binary directory
-execute_process(COMMAND "@CMAKE_CMAKE_COMMAND@"
+message("running: ${CMAKE_COMMAND}")
+execute_process(COMMAND "${CMAKE_COMMAND}"
"@CMAKE_BUILD_TEST_SOURCE_DIR@"
"-G@CMAKE_TEST_GENERATOR@"
WORKING_DIRECTORY "@CMAKE_BUILD_TEST_BINARY_DIR@"
@@ -12,7 +13,8 @@ if(RESULT)
endif(RESULT)
# Now use the --build option to build the project
-execute_process(COMMAND "@CMAKE_CMAKE_COMMAND@"
+message("running: ${CMAKE_COMMAND} --build")
+execute_process(COMMAND "${CMAKE_COMMAND}"
--build "@CMAKE_BUILD_TEST_BINARY_DIR@" --config Debug
RESULT_VARIABLE RESULT)
if(RESULT)