BUG: fix for bug 0003618 , allow one arch in OSX_ARCHS to work
This commit is contained in:
parent
22fca8aa12
commit
79d9041d81
|
@ -1941,18 +1941,14 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
|
||||||
std::vector<std::string> archs;
|
std::vector<std::string> archs;
|
||||||
cmSystemTools::ExpandListArgument(std::string(osxArch),
|
cmSystemTools::ExpandListArgument(std::string(osxArch),
|
||||||
archs);
|
archs);
|
||||||
if((archs.size() > 1)
|
for( std::vector<std::string>::iterator i = archs.begin();
|
||||||
|| ((archs.size()== 1) && this->Makefile->IsOn("CMAKE_DO_TRY_COMPILE")))
|
i != archs.end(); ++i)
|
||||||
{
|
{
|
||||||
for( std::vector<std::string>::iterator i = archs.begin();
|
flags += " -arch ";
|
||||||
i != archs.end(); ++i)
|
flags += *i;
|
||||||
{
|
|
||||||
flags += " -arch ";
|
|
||||||
flags += *i;
|
|
||||||
}
|
|
||||||
flags += " -isysroot ";
|
|
||||||
flags += sysroot;
|
|
||||||
}
|
}
|
||||||
|
flags += " -isysroot ";
|
||||||
|
flags += sysroot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->AddConfigVariableFlags(flags, flagsVar.c_str(), config);
|
this->AddConfigVariableFlags(flags, flagsVar.c_str(), config);
|
||||||
|
|
Loading…
Reference in New Issue