Browse Source

Fix case where no archs are found on older macs.

Bill Hoffman 16 years ago
parent
commit
6362d4c743
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Source/cmLocalGenerator.cxx

+ 4 - 4
Source/cmLocalGenerator.cxx

@@ -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