View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010046CMakeCMakepublic2009-12-13 14:362010-09-09 23:55
Reportertroy d. straszheim 
Assigned ToBrad King 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0010046: cmake not buildable in subdirectory of another project
Descriptioncmake's cmakelists.txt use CMAKE_SOURCE_DIR in a few places where they should use CMake_SOURCE_DIR, so that you can build cmake as a subdirectory of a larger project
Additional Informationdiff --git a/cmake-2.8.0/Source/CMakeLists.txt b/cmake-2.8.0/Source/CMakeLists.txt
index 9099691..3487d0a 100644
--- a/cmake-2.8.0/Source/CMakeLists.txt
+++ b/cmake-2.8.0/Source/CMakeLists.txt
@@ -344,7 +344,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}
   )
@@ -488,7 +488,7 @@ IF(BUILD_QtDialog)
 ENDIF(BUILD_QtDialog)
 
 INCLUDE (${CMAKE_BINARY_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
-INCLUDE (${CMAKE_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
+INCLUDE (${CMake_SOURCE_DIR}/Source/LocalUserOptions.cmake OPTIONAL)
 
 INSTALL_TARGETS(/bin cmake)
 INSTALL_TARGETS(/bin ctest)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0021549)
Brad King (manager)
2010-07-29 11:23

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=df1e00ff [^]

 Issue History
Date Modified Username Field Change
2009-12-13 14:36 troy d. straszheim New Issue
2010-07-29 11:23 Brad King Status new => assigned
2010-07-29 11:23 Brad King Assigned To => Brad King
2010-07-29 11:23 Brad King Note Added: 0021549
2010-07-29 11:23 Brad King Status assigned => closed
2010-07-29 11:23 Brad King Resolution open => fixed
2010-09-09 23:55 David Cole Fixed in Version => CMake 2.8.3
2010-09-09 23:55 David Cole Target Version => CMake 2.8.3


Copyright © 2000 - 2018 MantisBT Team