From d6f02cd9110267d105c03f2979e4744a6093bcfc Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 30 Jul 2008 10:44:57 -0400 Subject: BUG: fix for bug 7421, fortran did not get arch flags on the mac --- Source/cmLocalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 1c6df15..dd978fe 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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 archs; cmSystemTools::ExpandListArgument(std::string(osxArch), -- cgit v0.12