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: Mattias Arrelid <email@hidden>
- Date: Tue, 11 Dec 2007 14:24:04 +0100
On 11 dec 2007, at 13.55, Jonathan del Strother wrote:
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
That doesn't seem to work - it gives the same result as when using $
(SETTING_NAME), see:
http://www.cocoabuilder.com/archive/message/xcode/2006/7/21/8357
Could it be something else that gets in the way?
/ Mattias
_______________________________________________
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