Re: Setting Conditionals in Targets
Re: Setting Conditionals in Targets
- Subject: Re: Setting Conditionals in Targets
- From: Wim Lewis <email@hidden>
- Date: Wed, 20 Oct 2010 13:39:19 -0700
On 20 Oct 2010, at 1:22 PM, Gordon Apple wrote:
> I haven't used multiple targets previously, and am trying to figure out how
> to differentiate them with conditional compiler flags. The CFLocalServer
> example is useless in this regard because it only deals with selected files.
> I thought I remembered being able to set flags in either the project
> settings or the target settings, but can't currently find it.
You can select either the project (toplevel item in the group-tree sidebar) or the target (not the product file, I always make that mistake), open the inspector ("Info" window), switch to the "Build" tab, and enter or override build settings there. You can add additional preprocessor macros, e.g.
You can also select an individual build file in a target's compile phase, switch to "Build", and enter arbitrary extra compiler flags for it. I don't like to do this as much--- it's easy to forget that a specific file has special settings, or accidentally lose the settings while reorganizing your project. But sometime's it's what you need.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden