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

This commit is contained in:
Bill Hoffman 2008-07-30 10:44:57 -04:00
parent 08221c2a49
commit d6f02cd911
1 changed files with 1 additions and 1 deletions

View File

@ -1630,7 +1630,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
const char* sysrootDefault =
this->Makefile->GetDefinition("CMAKE_OSX_SYSROOT_DEFAULT");
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;
cmSystemTools::ExpandListArgument(std::string(osxArch),