MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010046 | CMake | CMake | public | 2009-12-13 14:36 | 2010-09-09 23:55 |
| Reporter | troy d. straszheim | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | ||
| Summary | 0010046: cmake not buildable in subdirectory of another project | ||||
| Description | cmake'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 | ||||
| Steps To Reproduce | |||||
| Additional Information | diff --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) | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||