BUG: fix for bug 7421, fortran did not get arch flags on the mac
This commit is contained in:
parent
08221c2a49
commit
d6f02cd911
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue