Compiling Files Only in One Configurations
Compiling Files Only in One Configurations
- Subject: Compiling Files Only in One Configurations
- From: Salman Khilji <email@hidden>
- Date: Thu, 25 Aug 2011 01:06:58 -0700
I am using Xcode 4.1. I have a project that has two configurations: Debug and Release.
I'd like to compile a slightly different set of files in both configurations. Say, Foo_Debug.cpp in Debug, and Foo_Release.cpp in the Release configuration.
How do I set up Xcode to do this? The problem is that if you have a single target with two configurations, the "Compile Sources" under "Build Phases" is still shared between the two configurations. There is no way to essentially specify that a particular file be built into the target only for a particular configuration.
One can create two targets in the project, say myapp_debug and myapp_release; however, doing so creates a maintenance headache that the user has to maintain two entire separate sets of files to compile, most of which are exactly the same except for one file that is different in the two configurations.
_______________________________________________
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