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