Re: Controlling targets and headers?
Re: Controlling targets and headers?
- Subject: Re: Controlling targets and headers?
- From: Brent Gulanowski <email@hidden>
- Date: Wed, 16 Jun 2004 00:15:05 -0400
On Jun 15, 2004, at 10:15 PM, April Gendill wrote:
>
Is there a preprocessor directive (or some other way) that would allow
>
me to determine the target being built and include a specific header
>
for one target or a different one for another target?
>
I think I know one way. In the Build tab of the Target settings (XCode
native targets, Get Info... or Inspector), you can add a custom C flag.
If you define a unique preprocessor symbol (like "USE_HEADER_XXX"),
using the -D flag, then in the file which optionally includes the
header, surround the #include directive with "#ifdef USE_HEADER_XXX"
and #endif", you should be able to achieve what you want.
--
Brent Gulanowski email@hidden
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.