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

BUG: fix for bug 7421, fortran did not get arch flags on the mac

parent 08221c2a
...@@ -1630,7 +1630,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags, ...@@ -1630,7 +1630,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
const char* sysrootDefault = const char* sysrootDefault =
this->Makefile->GetDefinition("CMAKE_OSX_SYSROOT_DEFAULT"); this->Makefile->GetDefinition("CMAKE_OSX_SYSROOT_DEFAULT");
bool flagsUsed = false; bool flagsUsed = false;
if(osxArch && sysroot && lang && lang[0] =='C') if(osxArch && sysroot && lang && (lang[0] =='C' || lang[0] == 'F'))
{ {
std::vector<std::string> archs; std::vector<std::string> archs;
cmSystemTools::ExpandListArgument(std::string(osxArch), cmSystemTools::ExpandListArgument(std::string(osxArch),
......
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