Re: suppress prefix header?
Re: suppress prefix header?
- Subject: Re: suppress prefix header?
- From: Chris Espinosa <email@hidden>
- Date: Wed, 1 Mar 2006 13:19:12 -0800
On Mar 1, 2006, at 12:01 PM, Hugh Hoover wrote: I have a target with a prefix header (precompiled). I have a few .cpp files in the project that cannot be compiled with the prefix header because of include ordering issues (files that must be included before the files in the prefix header, but only included in the small subset and not in the general case).
I >could< add some preprocessor #ifdefs, but I'd prefer to just suppress the prefixing for the specified files. I could also create a new target that doesn't use a prefix header, but that also seems inelegant.
Is there some way to suppress the prefix header in the per-file overrides in a target?
Not really. The easiest way to do this might be to create a separate static library target for those files, build them without the precompiled prefix, and then link its build product with your main coode.
In general per-file build settings can only add settings, not remove or override target-level settings. And the prefix and precompile machinery is really baked in to the Xcode build mechanism, so overriding it will be rather tough.
Chris |
_______________________________________________
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