MantisBT - CMake
View Issue Details
0010151CMakeCMakepublic2010-01-15 11:562011-01-17 07:32
Steve Wilson 
Brad King 
normalmajoralways
closedfixed 
CMake-2-8 
 
0010151: Xcode generator's ReRunCMake.make mechanism fails to include all CMakeLists.txt from a project in the dependency list.
The mechanism that creates the ReRunCMake.make file seems to not correctly gather all the dependent CMakeLists.txt files from a project. For example if you have the following source tree:

src/
  - CMakeLists.txt
  - A/
    - CMakeLists.txt
  - B/
    - CMakeLists.txt

where the src/CMakeLists.txt file calls add_subdirectory(A) and add_subdirectory(B), then CMake only includes the src/CMakeLists.txt file in the file dependency list in ReRunCMake.make file. The A/CMakeLists.txt and B/CMakeLists.txt files do not get included. Interestingly enough, these files do get added to ReRunCMake.make but get overwritten each time CMake processes another CMakeLists.txt file.

As a result, if someone changes CMakeLists.txt in either the A or B directories, the Xcode project does not re-run CMake to regenerate the the project files and the Xcode project does not get updated correctly.
No tags attached.
related to 0012616closed Brad King ReRunCMake.make overriden by subprojects 
zip patches.zip (2,018) 2010-01-15 16:26
https://public.kitware.com/Bug/file/2777/patches.zip
Issue History
2010-01-15 11:56Steve WilsonNew Issue
2010-01-15 16:25Steve WilsonNote Added: 0019153
2010-01-15 16:26Steve WilsonFile Added: patches.zip
2010-02-24 10:15Manuel MassingNote Added: 0019606
2010-02-24 10:16Manuel MassingNote Deleted: 0019606
2011-01-16 09:41David ColeAssigned To => Brad King
2011-01-16 09:41David ColeStatusnew => assigned
2011-01-16 09:42David ColeNote Added: 0024728
2011-01-17 07:26Brad KingNote Added: 0024735
2011-01-17 07:31Brad KingNote Added: 0024736
2011-01-17 07:32Brad KingStatusassigned => closed
2011-01-17 07:32Brad KingResolutionopen => fixed
2011-12-09 12:59Brad KingRelationship addedrelated to 0012616

Notes
(0019153)
Steve Wilson   
2010-01-15 16:25   
I have uploaded patches that correct this problem. These patches were generated against the CMake head branch sources on 1-15-09.

Steve
(0024728)
David Cole   
2011-01-16 09:42   
Brad, this is exactly the same problem you fixed last week, right? Guess we can mark this one as resolved?
(0024735)
Brad King   
2011-01-17 07:26   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=809ef308 [^]
(0024736)
Brad King   
2011-01-17 07:31   
Developer mailing list discussion:

  http://www.cmake.org/pipermail/cmake-developers/2011-January/001029.html [^]