From 6d6f4b93164313ae8f6dfbaabc579c48732c2769 Mon Sep 17 00:00:00 2001 From: Andrew Fuller Date: Tue, 14 Jan 2020 15:27:22 -0800 Subject: CPack/DragNDrop: Support CPACK_DMG__FILE_NAME --- Source/CPack/cmCPackDragNDropGenerator.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/CPack') 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); } -- cgit v1.2.1