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,
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);
}
......
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