Re: Use of preprocessor macros
Re: Use of preprocessor macros
- Subject: Re: Use of preprocessor macros
- From: Ken Thomases <email@hidden>
- Date: Wed, 2 Dec 2009 03:09:06 -0600
On Dec 1, 2009, at 7:35 PM, Graham Cox wrote:
On 02/12/2009, at 12:23 PM, Rob Keniger wrote:
This works fine for me. Are you sure you are compiling the build
configuration you think you're compiling? Are you changing the
preprocessor setting on the right target? Probably worth double
checking.
Okaaay... I got it.
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?
The target preprocessor macro settings can override the project
settings or they can extend them. You usually want to extend them
rather than override them. To do that, you probably want the target
settings to start with $(inherited).
Regards,
Ken
_______________________________________________
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