I have an Xcode project that contains many sub-projects. The main project file and all sub-projects have the same xcconfig file. Some of the sub-projects currently have a build rule set on them to use the Intel compiler for C++ files. I'm wondering if there is a way to move this build rule into the xcconfig file so that I can easily turn on or off the Intel compiler for C++ files by changing just the one xcconfig file instead of having to modify the build rule for each sub-project
A:
No, the configuration files only contain build settings, not any other traits of projects or targets. You have to set up build rules manually, on each individual target.
You might want to look into using the GCC_VERSION build setting to determine the compiler, rather than a build rule.
cdespinosa
2010-03-12 20:12:00
I figured that would be the case. I was hoping to switch easily back and forth between using GCC and the Intel compiler for C++ files only (thus GCC_VERSION isn't going to work for me here).
g-Off
2010-03-15 14:27:54