summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-03 14:45:59 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-03 14:45:59 (GMT)
commit0663dbf1331fb848cf0c274e232d0a19d966158c (patch)
treed98cf589f4fcb7d546cd843ec33f6e0026839cb5 /Source
parent9d16f64048ccaf228c135fe1236cb9eee56c50f3 (diff)
parentf6c21894952fb07e50e511efaa3baded794d631f (diff)
downloadCMake-0663dbf1331fb848cf0c274e232d0a19d966158c.zip
CMake-0663dbf1331fb848cf0c274e232d0a19d966158c.tar.gz
CMake-0663dbf1331fb848cf0c274e232d0a19d966158c.tar.bz2
Merge topic 'minor-cleanups'
f6c21894 Modules: Rename internal platform-specific compiler determination modules 0c7951a9 cmLocalGenerator: Consolidate conditions in AddArchitectureFlags
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e91eb46..b748b9c 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1475,11 +1475,7 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags,
const std::string& config)
{
// Only add Mac OS X specific flags on Darwin platforms (OSX and iphone):
- if (!this->Makefile->IsOn("APPLE")) {
- return;
- }
-
- if (this->EmitUniversalBinaryFlags) {
+ if (this->Makefile->IsOn("APPLE") && this->EmitUniversalBinaryFlags) {
std::vector<std::string> archs;
target->GetAppleArchs(config, archs);
const char* sysroot = this->Makefile->GetDefinition("CMAKE_OSX_SYSROOT");