Problem with targets having different header files with the same name
Problem with targets having different header files with the same name
- Subject: Problem with targets having different header files with the same name
- From: Stephen Kay <email@hidden>
- Date: Sat, 01 Sep 2012 17:06:47 -0400
- Thread-topic: Problem with targets having different header files with the same name
(Using Xcode 2.5 to port a CodeWarrior project...)
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.
In CodeWarrior, it all worked correctly because each target had a
specifically declared user access path to a folder containing the file, i.e.
{Project}Source/headers/flavor1 or
{Project}Source/headers/flavor2 etc.
... with options_app_type.h inside each folder, configured differently.
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:
Source/headers/flavor1/options_app_type.h
Source/headers/flavor2/options_app_type.h
But the second target WILL NOT pick up the correct header file.
I tried putting a path to the folder enclosing the file in the target's
Header Search Paths (similar to CodeWarrior), but that doesn't seem to help.
- Stephen
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
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