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
1 changed files with 4 additions and 4 deletions

View File

@ -1767,12 +1767,12 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
std::vector<std::string> archs;
cmSystemTools::ExpandListArgument(std::string(osxArch),
archs);
bool addArchFlag = true;
if(archs.size() == 1)
bool addArchFlag = false;
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