views:

196

answers:

1

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
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