diff options
author | Brad King <brad.king@kitware.com> | 2010-07-29 14:59:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-07-29 15:22:48 (GMT) |
commit | df1e00ff82c16bf01fdfc889ceea2d05205e14c6 (patch) | |
tree | c71d34a3771012a92f5ae9852f01de51333aa0c3 /Source | |
parent | 03b7eff0eacc2b80a85b949eb8031cb5e7a3d393 (diff) | |
download | CMake-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.txt | 6 |
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) |