• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem when inheriting settings in xcconfig files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem when inheriting settings in xcconfig files
      • From: Chris Hanson <email@hidden>
    • Re: Problem when inheriting settings in xcconfig files
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Problem when inheriting settings in xcconfig files
      • From: "Jonathan del Strother" <email@hidden>
  • Prev by Date: Key Value Observing?
  • Next by Date: Re: Problem when inheriting settings in xcconfig files
  • Previous by thread: RE: Key Value Observing?
  • Next by thread: Re: Problem when inheriting settings in xcconfig files
  • Index(es):
    • Date
    • Thread