Fix case where no archs are found on older macs.
This commit is contained in:
parent
42857c747e
commit
6362d4c743
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user