diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 933870657e..1b4cea3847 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1767,12 +1767,12 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags, std::vector 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