summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-01 12:19:28 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-01 12:19:36 (GMT)
commit34d746e4190f2c33a3fcfe35103981d20cb9b2c6 (patch)
treea5c4f200c95e67184dd3efe3a4fdbea12bf19110 /Source
parent113fbaf3e29d36827ca7242b8be3e5ee5b319d17 (diff)
parent8bd98b8117c31ee797b33fbf04ebfc03942ea15e (diff)
downloadCMake-34d746e4190f2c33a3fcfe35103981d20cb9b2c6.zip
CMake-34d746e4190f2c33a3fcfe35103981d20cb9b2c6.tar.gz
CMake-34d746e4190f2c33a3fcfe35103981d20cb9b2c6.tar.bz2
Merge topic 'genex-TARGET_BUNDLE_DIR_NAME'
8bd98b8117 Genex: Fix TARGET_BUNDLE_DIR_NAME incorrect extension Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7428
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index b08cddb..d773fdf 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -2763,8 +2763,18 @@ struct TargetFilesystemArtifactResultCreator<ArtifactBundleDirNameTag>
return std::string();
}
- return target->GetAppBundleDirectory(context->Config,
- cmGeneratorTarget::BundleDirLevel);
+ auto level = cmGeneratorTarget::BundleDirLevel;
+ auto config = context->Config;
+ if (target->IsAppBundleOnApple()) {
+ return target->GetAppBundleDirectory(config, level);
+ }
+ if (target->IsFrameworkOnApple()) {
+ return target->GetFrameworkDirectory(config, level);
+ }
+ if (target->IsCFBundleOnApple()) {
+ return target->GetCFBundleDirectory(config, level);
+ }
+ return std::string();
}
};