Problem when inheriting settings in xcconfig files
Problem when inheriting settings in xcconfig files
- Subject: Problem when inheriting settings in xcconfig files
- From: Mattias Arrelid <email@hidden>
- Date: Tue, 11 Dec 2007 13:49:30 +0100
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 on Leopard, 10.5.1...
Any ideas?
Regards
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