summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-17 20:09:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-17 20:09:52 (GMT)
commit6362d4c7439edfc7340acf53207ef759c1e2aeb1 (patch)
treee836f6f55e240d7b58c99bbd4f0783cd0f97705d /Source/cmLocalGenerator.cxx
parent42857c747e2c8114f662958b297ec2d728b73ecb (diff)
downloadCMake-6362d4c7439edfc7340acf53207ef759c1e2aeb1.zip
CMake-6362d4c7439edfc7340acf53207ef759c1e2aeb1.tar.gz
CMake-6362d4c7439edfc7340acf53207ef759c1e2aeb1.tar.bz2
Fix case where no archs are found on older macs.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 9338706..1b4cea3 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/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