diff options
author | Brad King <brad.king@kitware.com> | 2017-10-02 14:06:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-02 14:09:37 (GMT) |
commit | 39b50975d9b6351ef82bbe16fc0aa521a5410e22 (patch) | |
tree | ff48f2624498c4625c43322b4ba08f093c817e97 /Source/CPack/cmCPackDragNDropGenerator.cxx | |
parent | a9870c92118e242dfbc079aa1cea6a4214378e14 (diff) | |
download | CMake-39b50975d9b6351ef82bbe16fc0aa521a5410e22.zip CMake-39b50975d9b6351ef82bbe16fc0aa521a5410e22.tar.gz CMake-39b50975d9b6351ef82bbe16fc0aa521a5410e22.tar.bz2 |
CPack: Fix .dmg HFS+ creation on macOS APFS hosts
When running `hdiutil create`, specify the HFS+ filesystem explicitly.
Otherwise `hdiutil` may choose a filesystem based on the host. We do
not want to create APFS images for `.dmg` packages because they may not
mount on macOS versions prior to 10.12.
Diffstat (limited to 'Source/CPack/cmCPackDragNDropGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 5a173fc..1e1543f 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -417,6 +417,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir, temp_image_command << " -ov"; temp_image_command << " -srcfolder \"" << staging.str() << "\""; temp_image_command << " -volname \"" << cpack_dmg_volume_name << "\""; + temp_image_command << " -fs HFS+"; temp_image_command << " -format " << temp_image_format; temp_image_command << " \"" << temp_image << "\""; |