[CMake] Dependencies in Xcode files

Daniel Dunbar daniel at zuster.org
Sat Nov 7 22:13:59 EST 2009


Hi Bill,

Thanks for the reply.

The uses I'm seeing aren't on external targets, they are for internal
libraries which are built during the build. Is this the same problem?

Also, do you know if anyone has filed a bug with Apple tracking this issue?

 - Daniel

On Sat, Nov 7, 2009 at 6:10 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> 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