[CMake] CPack issue with PackageMaker

David Cole david.cole at kitware.com
Tue Apr 15 14:44:12 EDT 2008


In 2.4.7, the relocatable part of the info.plist file was hard-coded to
"false".

So it's still a mystery to me why it should end up blank for you...


On Tue, Apr 15, 2008 at 1:14 PM, Timenkov Yuri <ytimenkov at parallels.com>
wrote:

> On Tuesday 15 April 2008 20:56:11 David Cole wrote:
> > Something must be wrong with your build tree or your CMake installation.
> > This is from the CMake 2.4.8 Modules/CPack.cmake file:
> Ah, this seems a bug :(
>
> In CMake 2.4.7 there are no such lines.
>
> >
> > cpack_set_if_not_set(CPACK_PACKAGE_RELOCATABLE "false")
> The other reason may be that I don't use CPack.cmake. I run cpack
> with --config option, and build directory specified there. That is I don't
> put include(cpack) line into my cmakelists.
>
> I don't know whether cpack reads CMakeCache.txt when it is ran in this
> mode.
> (I suppose it doesn't).
>
> >
> >
> > # always force to exactly "true" or "false" for CPack.Info.plist.in:
> >
> > if(CPACK_PACKAGE_RELOCATABLE)
> >
> >   set(CPACK_PACKAGE_RELOCATABLE "true")
> >
> > else(CPACK_PACKAGE_RELOCATABLE)
> >
> >   set(CPACK_PACKAGE_RELOCATABLE "false")
> >
> > endif(CPACK_PACKAGE_RELOCATABLE)
> >
> >
> > If CPACK_PACKAGE_RELOCATABLE is set to something other than "true" or
> > "false" at CPack time, then something very odd is happening....
> >
> > If you start over with an empty build tree, do you get this same result?
> >
> >
> > On Tue, Apr 15, 2008 at 5:27 AM, Timenkov Yuri <ytimenkov at parallels.com>
> >
> > wrote:
> > > Hi everyone.
> > > This is just FYI.
> > >
> > > I'm started to playing with CPack (2.4) for Apple (Tiger 10.4,
> > > PackageMaker
> > > v2.1.1), and encountered very strange error:
> > > CPack: Compress package
> > >
> > > The package could not be created because of the following errors:
> > > No package identifier specified.
> > >
> > > While investigating causes of such strange behavior of PackageMaker I
> > > came to
> > > idea that cpack generates invalid XML file Info.plist. And does it
> > > because CPACK_PACKAGE_RELOCATABLE variable is not set. Moreover, it
> > > should be set to
> > > string value in lowercase.
> > >
> > > Regards, Yuri
> > > _______________________________________________
> > > CMake mailing list
> > > CMake at cmake.org
> > > http://www.cmake.org/mailman/listinfo/cmake
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080415/1defc76a/attachment.htm>


More information about the CMake mailing list