Commit e7d75864 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

Only do the OSX arch stuff on OSX.

parent 7b0e7f71
...@@ -1748,7 +1748,8 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags, ...@@ -1748,7 +1748,8 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
std::string flagsVar = "CMAKE_"; std::string flagsVar = "CMAKE_";
flagsVar += lang; flagsVar += lang;
flagsVar += "_FLAGS"; flagsVar += "_FLAGS";
// Add special OSX flags
#ifdef __APPLE__
if(this->EmitUniversalBinaryFlags) if(this->EmitUniversalBinaryFlags)
{ {
const char* osxArch = const char* osxArch =
...@@ -1815,7 +1816,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags, ...@@ -1815,7 +1816,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
flags += deploymentTarget; flags += deploymentTarget;
} }
} }
#endif
this->AddConfigVariableFlags(flags, flagsVar.c_str(), config); this->AddConfigVariableFlags(flags, flagsVar.c_str(), config);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment