diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2014-12-16 21:22:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-17 16:26:10 (GMT) |
commit | 3a605693a5349a252bb9c3eb472d02b1c23886e3 (patch) | |
tree | 9b1c09db3939bd7fdbf852f54e4b68d33d51c397 | |
parent | 207b7af00be53f0779c4896f311f130455d3aadd (diff) | |
download | CMake-3a605693a5349a252bb9c3eb472d02b1c23886e3.zip CMake-3a605693a5349a252bb9c3eb472d02b1c23886e3.tar.gz CMake-3a605693a5349a252bb9c3eb472d02b1c23886e3.tar.bz2 |
Xcode: Call IsCFBundleOnApple to decide if bundle is being built
Narrow down the decision if a CFBundle is built to one place.
This is a preparation patch to add another target property
which, if set, will imply BUNDLE. Having only one function
which will have to look at both properties helps to keep code
clean.
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index de6e915..6a480a9 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1925,7 +1925,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, { buildSettings->AddAttribute("LIBRARY_STYLE", this->CreateString("BUNDLE")); - if (target.GetPropertyAsBool("BUNDLE")) + if (target.IsCFBundleOnApple()) { // It turns out that a BUNDLE is basically the same // in many ways as an application bundle, as far as |