Re: Use of preprocessor macros
Re: Use of preprocessor macros
- Subject: Re: Use of preprocessor macros
- From: Chris Hanson <email@hidden>
- Date: Wed, 02 Dec 2009 06:01:31 -0800
Xcode build settings are lexically scoped, just like variables in C.
Think of the project as an outer scope (like a file static variable)
and a target like an inner scope (like a local variable).
If you don't override a build setting at the target level, its project-
level setting is used. You can tell a setting is overridden because
it's in bold rather than plain text.
-- Chris
On Dec 1, 2009, at 5:35 PM, Graham Cox <email@hidden> wrote:
I'd set this in the (Project) > Get Info > Build settings, not
(Target) > Get Info > Build settings.
Putting it in the target settings works as expected.
To be honest it's very confusing as to which settings you're
supposed to use for what, and where they apply, since they're all
identical. If the project settings are not used, why have them there
at all?
_______________________________________________
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