Commit 6362d4c7 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

Fix case where no archs are found on older macs.

parent 42857c74
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment