• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: suppress prefix header?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: suppress prefix header?
      • From: Hugh Hoover <email@hidden>
References: 
 >suppress prefix header? (From: Hugh Hoover <email@hidden>)

  • Prev by Date: Re: [Config Files] Debugging config files
  • Next by Date: Re: Building a framework around a Makefile generated dylib
  • Previous by thread: suppress prefix header?
  • Next by thread: Re: suppress prefix header?
  • Index(es):
    • Date
    • Thread