You're doing this: set(APPS "\${CMAKE_INSTALL_PREFIX}/madx${BINARY_POSTFIX}.app") # paths to executables set(DIRS "")
Then this: INSTALL(CODE " include(BundleUtilities) fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\") " COMPONENT Runtime) Which means that your install code (in cmake_install.cmake) will have something like this in it: include(BundleUtilities) fixup_bundle("${CMAKE_INSTALL_PREFIX}/madxXXX.app" "" "") CMAKE_INSTALL_PREFIX should evaluate to a directory underneath the _CPack_Packages directory, so that should be ok. But your DIRS variable is empty. What libs does your bundle app depend on? Are they built into the app with full path names such that an tool -L analysis will work without any DIRS value? Did you run something like "cpack -G DragNDrop --verbose" to see the full output of the make install step, and did it seem like fixup_bundle yielded any output in the --verbose stream...? Your code looks right, but maybe you need some DIRS for the fixup to work correctly... HTH, David On Mon, Dec 19, 2011 at 11:31 AM, Yngve Levinsen <yngve.levin...@gmail.com> wrote: > I *have* to learn to click reply all soon! Sorry once again. > > Cheers, > Yngve > > > ---------- Forwarded message ---------- > From: Yngve Levinsen <yngve.levin...@gmail.com> > Date: 19 December 2011 17:30 > Subject: Re: [CMake] Fwd: cpack DragNDrop on OSX 10.7 > To: David Cole <david.c...@kitware.com> > > > I did not change any install rules. Yes it was working before, but > with Lion I also made a completely clean install on a new harddisk, so > I *might* have done something else as well. > > I noticed these errors first when I had 10.6 myself and some > colleagues were enable to follow my procedures to create the dmg, > while for me it worked wi > without any issues or warnings. So I've had three computers (I believe > they were both using 10.7) which have produced the same error, while > my 10.6 install was working fine. But as mentioned, I cannot say there > is a cause, just correlation. > > You can try yourself if you have Lion (or you can check for errors in > my configuration): > svn checkout http://svnweb.cern.ch/guest/madx/trunk/madX/ > (installation under cmake/setupInstallation) > > If this is an issue with this hdiutil, perhaps you could make a test > for it for the future? > > Cheers, > Yngve > > On 19 December 2011 17:10, David Cole <david.c...@kitware.com> wrote: >> Are you saying that this was working before you updated to Lion, but >> now it does not work? >> >> Did you also change any code related to install rules at the same time? >> >> >> >> On Mon, Dec 19, 2011 at 11:06 AM, Yngve Levinsen >> <yngve.levin...@gmail.com> wrote: >>> Apologies, somehow I managed to leave the mailing list out. >>> >>> And one last thing, thank you for such a quick response! >>> >>> >>> ---------- Forwarded message ---------- >>> From: Yngve Levinsen <yngve.levin...@gmail.com> >>> Date: 19 December 2011 17:03 >>> Subject: Re: [CMake] cpack DragNDrop on OSX 10.7 >>> To: David Cole <david.c...@kitware.com> >>> >>> >>> Hi, >>> >>> Thanks for the input. I tried the verbose with ZIP and DragNDrop. I >>> have two projects, and the problem is consistent for both. >>> >>> It happens as I assumed I think. When I choose ZIP then the bundle >>> targets are added, when I choose DragNDrop they are not installed for >>> some reason. I also install some files in various places (headers, >>> example scripts etc), which are installed for both generators. >>> >>> For what it's worth I ran "make Experimental" on the recent cmake from >>> git, you find the result here: >>> http://www.cdash.org/CDash/buildSummary.php?buildid=1836104 >>> >>> I noticed one test related to BundleUtilities failed, but I don't know >>> if it is related? >>> >>> Cheers, >>> Yngve >>> >>> On 19 December 2011 16:47, David Cole <david.c...@kitware.com> wrote: >>>> Use "--verbose" on the CPack command line to get more information >>>> about why it's failing. >>>> >>>> Also, look for log files under the _CPack_Packages directory to see if >>>> there are any additional details in there. >>>> >>>> Does it happen consistently every time you run cpack, or is it sporadic? >>>> >>>> We frequently see errors from Apple's hdiutil command line tool on the >>>> CMake dashboard, but it does not happen every time. It happens more >>>> often than we would like, but it very often works the next time we >>>> try, so we have not pursued coming up with a work-around too >>>> aggressively. >>>> >>>> >>>> HTH, >>>> David >>>> >>>> >>>> On Mon, Dec 19, 2011 at 10:39 AM, Yngve Levinsen >>>> <yngve.levin...@gmail.com> wrote: >>>>> Dear developers, >>>>> >>>>> I am using DragNDrop packaging, and suddenly now when I upgraded to >>>>> 10.7 there seem to be a problem somewhere. I noticed it just after the >>>>> upgrade to 10.7 but it could of course be unrelated. I use CMake >>>>> version 2.8.6 installed using Homebrew. >>>>> >>>>> Somehow when I run "cpack -G DragNDrop" the bundles are not added to >>>>> the dmg. I am using the fixup_bundle() to add all libraries, which >>>>> then fails because the .app doesn't exist in the _CPack_Packages >>>>> directory. The bundle is created and I noticed that it is added if I >>>>> use e.g. the ZIP generator instead. >>>>> >>>>> Anyone else can confirm this? I tried to search for it in the >>>>> archives, but I could not find it. >>>>> >>>>> Best Regards, >>>>> Yngve I. Levinsen >>>>> -- >>>>> >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the CMake FAQ at: >>>>> http://www.cmake.org/Wiki/CMake_FAQ >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://www.cmake.org/mailman/listinfo/cmake >>> -- >>> >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the CMake FAQ at: >>> http://www.cmake.org/Wiki/CMake_FAQ >>> >>> Follow this link to subscribe/unsubscribe: >>> http://www.cmake.org/mailman/listinfo/cmake > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake