[CMake] Dependencies in Xcode files

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 7 21:10:22 EST 2009


Daniel Dunbar wrote:
> Hi,
> 
> I've been looking at the CMake generated Xcode project files and I'm
> wondering if the dependency hacks (XCODE_DEPEND_HELPER.make) are
> absolutely necessary in newer versions of Xcode. That file has some
> comment about avoiding a bug in Xcode 1.5 -- is it possible to
> generate Xcode 2.0+ specific project files which wouldn't need to use
> the extra makefiles?
> 
> On our project we have quite a few targets, and the extra build steps
> really slow down the build (a full build when nothing has changed
> takes 17s!).
> 

Yes, unfortunately they are needed.  Last I checked Xcode was still 
incapable of  having an external depend on a target.  So, lets say you 
have an exe foo, and it links to some library /usr/lib/libmylib.a, there 
is no way other than the depend hack to get Xcode to relink foo when 
libmylib.a changes on disk.  If you can figure out how to do that, then 
the hack could be removed.

-Bill


More information about the CMake mailing list