[CMake] Xcode and ReRunCMake.make
Steven Wilson
steven.wesley.wilson at gmail.com
Thu Jan 14 19:04:33 EST 2010
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 I change 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.
Any help would be appreciated, thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100114/9fc72e85/attachment.htm>
More information about the CMake
mailing list