diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-01-17 13:32:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-17 13:33:01 (GMT) |
commit | 808888aa47377b7caa7b199975e927ab6a004840 (patch) | |
tree | 04ade2c87f78d4d6526b265bc707a0798df42e19 /Source | |
parent | c9836f8a886daf10e46d068d736c56c78d94de6a (diff) | |
parent | 6d6f4b93164313ae8f6dfbaabc579c48732c2769 (diff) | |
download | CMake-808888aa47377b7caa7b199975e927ab6a004840.zip CMake-808888aa47377b7caa7b199975e927ab6a004840.tar.gz CMake-808888aa47377b7caa7b199975e927ab6a004840.tar.bz2 |
Merge topic 'cpack-custom-dmg-names'
6d6f4b9316 CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAME
b53230fbee Tests: Add DragNDrop as a testable CPack generator
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4227
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.cxx | 5 |
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); } |