Re: Problem with targets having different header files with the same name
Re: Problem with targets having different header files with the same name
- Subject: Re: Problem with targets having different header files with the same name
- From: Jens Alfke <email@hidden>
- Date: Sat, 01 Sep 2012 17:06:12 -0700
On Sep 1, 2012, at 2:06 PM, Stephen Kay < email@hidden> wrote: I have multiple targets that all need to include, very near the beginning of compilation, a file named "options_app_type.h". This contains #defines that tell the code what flavor of the application to become.
Use a prefix file for this. Create one for each target, and set up each target to use the corresponding one.
I have not successfully figured out how to do this in Xcode. In the project's list of files, for example (two targets so far), I have two options_app_type.h files. One file is included in one target, the other file is included in the other target (in other words, one of the target checkboxes will be off.) They have different paths to:
Adding header files to a target doesn’t really change anything at compile time; the compiler will still search the source trees to find them. Its purpose is to be able to specify what headers become public when you build a framework.
—Jens |
_______________________________________________
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