diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-17 16:09:52 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-17 16:09:52 -0400 |
commit | 6362d4c7439edfc7340acf53207ef759c1e2aeb1 (patch) | |
tree | e836f6f55e240d7b58c99bbd4f0783cd0f97705d /Source/cmLocalGenerator.cxx | |
parent | 42857c747e2c8114f662958b297ec2d728b73ecb (diff) | |
download | cmake-6362d4c7439edfc7340acf53207ef759c1e2aeb1.tar.gz |
Fix case where no archs are found on older macs.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<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 |