diff options
author | Brad King <brad.king@kitware.com> | 2008-04-14 19:27:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-04-14 19:27:27 (GMT) |
commit | 629afe07ce50d027b26cf9a62986a08cb4dac578 (patch) | |
tree | 10f8988f1c5e58a837a45400aea4cf9d885d5ea8 /Source | |
parent | 820901dd134dd5963fd24e9806fbbf759fd5de14 (diff) | |
download | CMake-629afe07ce50d027b26cf9a62986a08cb4dac578.zip CMake-629afe07ce50d027b26cf9a62986a08cb4dac578.tar.gz CMake-629afe07ce50d027b26cf9a62986a08cb4dac578.tar.bz2 |
BUG: A per-config target name postfix should be ignored for Mac bundle and framework names.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index e7bf4ec..1bf3061 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -134,8 +134,8 @@ void cmTarget::DefineProperties(cmake *cm) ("DEBUG_POSTFIX", cmProperty::TARGET, "A postfix that will be applied to this target when build debug.", "A property on a target that specifies a postfix to add to the " - "target name when built in debug mode. For example foo.dll " - "versus fooD.dll"); + "target name when built in debug mode. For example \"foo.dll\" " + "versus \"fooD.dll\". Ignored for Mac Frameworks and App Bundles."); cm->DefineProperty ("EchoString", cmProperty::TARGET, @@ -2311,6 +2311,12 @@ void cmTarget::GetFullNameInternal(TargetType type, std::string configProp = cmSystemTools::UpperCase(config); configProp += "_POSTFIX"; configPostfix = this->GetProperty(configProp.c_str()); + // Mac application bundles and frameworks have no postfix. + if(configPostfix && + (this->IsAppBundleOnApple() || this->IsFrameworkOnApple())) + { + configPostfix = 0; + } } const char* prefixVar = this->GetPrefixVariableInternal(type, implib); const char* suffixVar = this->GetSuffixVariableInternal(type, implib); |