View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010151CMakeCMakepublic2010-01-15 11:562011-01-17 07:32
ReporterSteve Wilson 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010151: Xcode generator's ReRunCMake.make mechanism fails to include all CMakeLists.txt from a project in the dependency list.
DescriptionThe 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.
TagsNo tags attached.
Attached Fileszip file icon patches.zip [^] (2,018 bytes) 2010-01-15 16:26

 Relationships
related to 0012616closedBrad King ReRunCMake.make overriden by subprojects 

  Notes
(0019153)
Steve Wilson (developer)
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 (manager)
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 (manager)
2011-01-17 07:26

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=809ef308 [^]
(0024736)
Brad King (manager)
2011-01-17 07:31

Developer mailing list discussion:

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

 Issue History
Date Modified Username Field Change
2010-01-15 11:56 Steve Wilson New Issue
2010-01-15 16:25 Steve Wilson Note Added: 0019153
2010-01-15 16:26 Steve Wilson File Added: patches.zip
2010-02-24 10:15 Manuel Massing Note Added: 0019606
2010-02-24 10:16 Manuel Massing Note Deleted: 0019606
2011-01-16 09:41 David Cole Assigned To => Brad King
2011-01-16 09:41 David Cole Status new => assigned
2011-01-16 09:42 David Cole Note Added: 0024728
2011-01-17 07:26 Brad King Note Added: 0024735
2011-01-17 07:31 Brad King Note Added: 0024736
2011-01-17 07:32 Brad King Status assigned => closed
2011-01-17 07:32 Brad King Resolution open => fixed
2011-12-09 12:59 Brad King Relationship added related to 0012616


Copyright © 2000 - 2018 MantisBT Team