summaryrefslogtreecommitdiff
path: root/Source/CPack
diff options
context:
space:
mode:
authorAndrew Fuller <afuller@teradici.com>2020-01-14 15:27:22 -0800
committerAndrew Fuller <afuller@teradici.com>2020-01-16 08:04:35 -0800
commit6d6f4b93164313ae8f6dfbaabc579c48732c2769 (patch)
tree50f47873eedf6dbe11a0acc335b0277a3b303995 /Source/CPack
parentb53230fbeeacd367f392ae5a19bde98fa67986e8 (diff)
downloadcmake-6d6f4b93164313ae8f6dfbaabc579c48732c2769.tar.gz
CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAME
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackDragNDropGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx
index ea7100708f..3516235810 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.cxx
+++ b/Source/CPack/cmCPackDragNDropGenerator.cxx
@@ -775,6 +775,11 @@ std::string cmCPackDragNDropGenerator::GetComponentInstallDirNameSuffix(
}
}
+ std::string componentFileName =
+ "CPACK_DMG_" + cmSystemTools::UpperCase(componentName) + "_FILE_NAME";
+ if (this->IsSet(componentFileName)) {
+ return this->GetOption(componentFileName);
+ }
return GetComponentPackageFileName(package_file_name, componentName, false);
}