Fix case where no archs are found on older macs.

This commit is contained in:
Bill Hoffman 2009-09-17 16:09:52 -04:00
parent 42857c747e
commit 6362d4c743

View File

@ -1767,12 +1767,12 @@ 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);
bool addArchFlag = true; bool addArchFlag = false;
if(archs.size() == 1) if(archs.size() >= 1)
{ {
if(archs[0] == "") if(archs[0] != "")
{ {
addArchFlag = false; addArchFlag = true;
} }
} }
// if there is more than one arch add the -arch and // if there is more than one arch add the -arch and