[CMake] dmg CPack Options

Eric Noulard eric.noulard at gmail.com
Thu Sep 22 16:52:48 EDT 2011


2011/9/22 Michael Jackson <mike.jackson at bluequartz.net>:
> I just found that and have been playing with it but if I set it to 1 then I get the following error:
>
> CPack: Create package using DragNDrop
> CPack: Install projects
> CPack: - Run preinstall target for: DREAM3D
> CPack: - Install project: DREAM3D
> CPack: -   Install component: Applications
> CPack: -   Install component: Unspecified
> CPack: Create package
> CPack Error: Error executing: /usr/bin/hdiutil create -ov -srcfolder "/Users/mjackson/Workspace/DREAM3D/Build/_CPack_Packages/Darwin/DragNDrop/ALL_IN_ONE" -volname "DREAM3D-v2.1488.gfb63bc8-OSX" -format UDRW "/Users/mjackson/Workspace/DREAM3D/Build/_CPack_Packages/Darwin/DragNDrop/temp.dmg"
> CPack Error: Error generating temporary disk image.
> CPack Error: Problem compressing the directory
> CPack Error: Error when generating package: DREAM3D
> make: *** [package] Error 1
>
> This is reproducible toggling the value between 1 and 0.

Unfortunately this is a known but yet unresolved issue:
http://public.kitware.com/Bug/view.php?id=12129

If you use COMPONENT packaging.
the  CPACK_INCLUDE_TOPLEVEL_DIRECTORY does not play well with this
because component install already plays (mangle) with the name of
the temporary install directory...



-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list