summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-17 15:53:02 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-17 15:53:02 (GMT)
commitea282284d5d626b1143bea8d3be70995eaa88f2e (patch)
tree8ac5f12977743e8caa4d2850fa5bff9d0ca3fe79 /Source/cmLocalGenerator.cxx
parent8e8c9b72428ab3f4a63a99820dfd4aab46661bd6 (diff)
downloadCMake-ea282284d5d626b1143bea8d3be70995eaa88f2e.zip
CMake-ea282284d5d626b1143bea8d3be70995eaa88f2e.tar.gz
CMake-ea282284d5d626b1143bea8d3be70995eaa88f2e.tar.bz2
Fix for bug #9466. Change the implementation of OSX arch lists. If no ARCHs are specified by the user then no flags are set. We no longer use CMAKE_OSX_ARCHITECTURES_DEFAULT.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 4d7bfdb..9338706 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1770,10 +1770,7 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags,
bool addArchFlag = true;
if(archs.size() == 1)
{
- const char* archOrig =
- this->Makefile->GetSafeDefinition("CMAKE_OSX_ARCHITECTURES_DEFAULT");
-
- if(archs[0] == archOrig)
+ if(archs[0] == "")
{
addArchFlag = false;
}