summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackGenerator.cxx
diff options
context:
space:
mode:
authorTim Hutt <tim.hutt@ultrahaptics.com>2017-02-14 13:18:42 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-17 16:40:45 (GMT)
commitd32f9debc80e1fc90efb07392f829d998cbbc2c5 (patch)
tree8b4eb5a95ca78cfc7a7fa0aea2bae9f28c6ac4f5 /Source/CPack/cmCPackGenerator.cxx
parent11e9605179e340833d95115fb0178d2ee84b3e24 (diff)
downloadCMake-d32f9debc80e1fc90efb07392f829d998cbbc2c5.zip
CMake-d32f9debc80e1fc90efb07392f829d998cbbc2c5.tar.gz
CMake-d32f9debc80e1fc90efb07392f829d998cbbc2c5.tar.bz2
CPack: Add option to specify --component-plist for productbuild
When using the productbuild generator this lets you specify the value of the `--component-plist` parameter when it runs pkgbuild for a component. Fixes: #16638
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 21eda79..e1a4a2a 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -1396,6 +1396,11 @@ cmCPackComponent* cmCPackGenerator::GetComponent(
component->ArchiveFile = archiveFile;
}
+ const char* plist = this->GetOption(macroPrefix + "_PLIST");
+ if (plist && *plist) {
+ component->Plist = plist;
+ }
+
const char* groupName = this->GetOption(macroPrefix + "_GROUP");
if (groupName && *groupName) {
component->Group = GetComponentGroup(projectName, groupName);