summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-07-29 14:59:27 (GMT)
committerBrad King <brad.king@kitware.com>2010-07-29 15:22:48 (GMT)
commitdf1e00ff82c16bf01fdfc889ceea2d05205e14c6 (patch)
treec71d34a3771012a92f5ae9852f01de51333aa0c3 /Source
parent03b7eff0eacc2b80a85b949eb8031cb5e7a3d393 (diff)
downloadCMake-df1e00ff82c16bf01fdfc889ceea2d05205e14c6.zip
CMake-df1e00ff82c16bf01fdfc889ceea2d05205e14c6.tar.gz
CMake-df1e00ff82c16bf01fdfc889ceea2d05205e14c6.tar.bz2
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 'Source')
-rw-r--r--Source/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index dbbb558..b098da1 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -350,7 +350,7 @@ ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO OR MINGW)
# CTestLib
#
INCLUDE_DIRECTORIES(
- "${CMAKE_SOURCE_DIR}/Source/CTest"
+ "${CMake_SOURCE_DIR}/Source/CTest"
${CMAKE_XMLRPC_INCLUDES}
${CMAKE_CURL_INCLUDES}
)
@@ -493,8 +493,8 @@ IF(BUILD_QtDialog)
SUBDIRS(QtDialog)
ENDIF(BUILD_QtDialog)
-INCLUDE (${CMAKE_BINARY_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
-INCLUDE (${CMAKE_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
+INCLUDE (${CMake_BINARY_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
+INCLUDE (${CMake_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
INSTALL_TARGETS(/bin cmake)
INSTALL_TARGETS(/bin ctest)