summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAndrew Fuller <afuller@teradici.com>2020-01-14 23:27:22 (GMT)
committerAndrew Fuller <afuller@teradici.com>2020-01-16 16:04:35 (GMT)
commit6d6f4b93164313ae8f6dfbaabc579c48732c2769 (patch)
tree50f47873eedf6dbe11a0acc335b0277a3b303995 /Source/CPack
parentb53230fbeeacd367f392ae5a19bde98fa67986e8 (diff)
downloadCMake-6d6f4b93164313ae8f6dfbaabc579c48732c2769.zip
CMake-6d6f4b93164313ae8f6dfbaabc579c48732c2769.tar.gz
CMake-6d6f4b93164313ae8f6dfbaabc579c48732c2769.tar.bz2
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 ea71007..3516235 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);
}