summaryrefslogtreecommitdiff
path: root/Tests/CMakeInstall.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-07-29 10:59:27 -0400
committerBrad King <brad.king@kitware.com>2010-07-29 11:22:48 -0400
commitdf1e00ff82c16bf01fdfc889ceea2d05205e14c6 (patch)
treec71d34a3771012a92f5ae9852f01de51333aa0c3 /Tests/CMakeInstall.cmake
parent03b7eff0eacc2b80a85b949eb8031cb5e7a3d393 (diff)
downloadcmake-df1e00ff82c16bf01fdfc889ceea2d05205e14c6.tar.gz
Refer to self with CMake_(SOURCE|BINARY)_DIR (#10046)
This is good practice, and is necessary to support building CMake as a subdirectory of another project.
Diffstat (limited to 'Tests/CMakeInstall.cmake')
-rw-r--r--Tests/CMakeInstall.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeInstall.cmake b/Tests/CMakeInstall.cmake
index f141b53a70..dabc852923 100644
--- a/Tests/CMakeInstall.cmake
+++ b/Tests/CMakeInstall.cmake
@@ -33,7 +33,7 @@ if(CMake_TEST_INSTALL)
add_test(CMake.Install
${CMake_TEST_INSTALL_CTest}
${CMake_TEST_INSTALL_CONFIG}
- --build-and-test ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
+ --build-and-test ${CMake_SOURCE_DIR} ${CMake_BINARY_DIR}
--build-generator ${CMAKE_GENERATOR} # Not CMAKE_TEST_GENERATOR
--build-project CMake
--build-makeprogram ${CMAKE_MAKE_PROGRAM} # Not CMAKE_TEST_MAKEPROGRAM