Re: Problem when inheriting settings in xcconfig files
Re: Problem when inheriting settings in xcconfig files
- Subject: Re: Problem when inheriting settings in xcconfig files
- From: "Jonathan del Strother" <email@hidden>
- Date: Tue, 11 Dec 2007 12:55:06 +0000
On Dec 11, 2007 12:49 PM, Mattias Arrelid <email@hidden> wrote:
> Hi everyone,
>
> I have a project which defines the build and target settings through
> xcconfig files. Now, I would like to define other linker flags in the
> top level root xcconfig file, and re-use these in other xcconfig files
> that includes this xcconfig file. Like...
>
> root.xcconfig:
> OTHER_LDFLAGS = -framework Carbon
>
> using_root_as_base.xcconfig:
>
> #include "root.xcconfig"
> OTHER_LDFLAGS = -framework Cocoa $(OTHER_LDFLAGS)
>
> Why doesn't the above work as expected? E.g. when I watch the output
> from the build process, the build setting that uses
> "using_root_as_base.xcconfig" only passes "-framework Cocoa" to the
> linker, instead of "-framework Cocoa -framework Carbon". I've seen
> examples floating around the internet that uses this format, are they
> wrong too, or is it something that has changed lately? If i _don't_
> define the OTHER_LDFLAGS in "using_root_as_base.xcconfig" the build
> log shows that the linker uses "-framework Carbon", as expected.
I'm not sure if that's supposed to work, but try
OTHER_LDFLAGS = -framework Cocoa $(inherited)
instead.
Jon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden