Re: Disable precompiled headers for a specific file?
Re: Disable precompiled headers for a specific file?
- Subject: Re: Disable precompiled headers for a specific file?
- From: Alastair Houghton <email@hidden>
- Date: Mon, 23 Jul 2007 23:26:59 +0100
On 23 Jul 2007, at 20:42, Chris Espinosa wrote:
On Jul 23, 2007, at 12:33 PM, Tim Conkling wrote: There are several files in my project that should not (in fact, can not) include the project's prefix header. Is this possible? If not (ouch!), what is the suggested workaround? I guess I could create a new static library target that contains only the affected files.
(I'm porting a project from Visual Studio 2003, which has the ability to turn off the prefix header on a per-file basis.)
The prefix header is forced on a per-target basis, so your only alternative is to build those files into a separate target, then link their static archives into your final executable.
An alternative might be to do something like this:
#ifdef NO_PREFIX_HEADER ... #endif
around the content of the prefix header, then define NO_PREFIX_HEADER in the compiler settings for the files that aren't supposed to use it. After all, it's only text inclusion, so it's the contents rather than the #including that you presumably need to disable?
Kind regards,
Alastair.
|
_______________________________________________
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