Only do the OSX arch stuff on OSX.

This commit is contained in:
Bill Hoffman 2009-09-18 15:16:33 -04:00
parent 7b0e7f714b
commit e7d75864d1
1 changed files with 3 additions and 2 deletions

View File

@ -1748,7 +1748,8 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
std::string flagsVar = "CMAKE_";
flagsVar += lang;
flagsVar += "_FLAGS";
// Add special OSX flags
#ifdef __APPLE__
if(this->EmitUniversalBinaryFlags)
{
const char* osxArch =
@ -1815,7 +1816,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
flags += deploymentTarget;
}
}
#endif
this->AddConfigVariableFlags(flags, flagsVar.c_str(), config);
}