summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-21 17:00:49 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-21 17:00:49 (GMT)
commit2dc39b8c329425cb54e5e111e2b00d79caa1db36 (patch)
tree516539dab9c55976dbf95cdc6896abacaff4ae7a /Source/cmMakefileExecutableTargetGenerator.cxx
parent2f94a2c919ddb39f33c47b4baa7bd37e2ae4cacd (diff)
downloadCMake-2dc39b8c329425cb54e5e111e2b00d79caa1db36.zip
CMake-2dc39b8c329425cb54e5e111e2b00d79caa1db36.tar.gz
CMake-2dc39b8c329425cb54e5e111e2b00d79caa1db36.tar.bz2
Define per-target OSX_ARCHITECTURES property
The CMAKE_OSX_ARCHITECTURES variable works only as a global setting. This commit defines target properties OSX_ARCHITECTURES OSX_ARCHITECTURES_<CONFIG> to specify OS X architectures on a per-target and per-configuration basis. See issue #8725.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index a20c917..49b9d75 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -229,6 +229,10 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
// Add language feature flags.
this->AddFeatureFlags(flags, linkLanguage);
+#ifdef __APPLE__
+ this->LocalGenerator->AddArchitectureFlags(flags, this->Target, linkLanguage, this->ConfigName);
+#endif /* __APPLE__ */
+
// Add target-specific linker flags.
this->LocalGenerator->AppendFlags
(linkFlags, this->Target->GetProperty("LINK_FLAGS"));