[CMake] Question about error creating CPack RPM installer

Eric Noulard eric.noulard at gmail.com
Wed Mar 25 10:15:39 EDT 2009


2009/3/24 Allen Gooch <allen.gooch at gmail.com>:
> I'm trying to create an RPM installer for my project using CPack. My
> environment is cmake-2.7 prerelease built from CVS on 2009-03-05 on a Fedora
> Core 10 32-bit x86 host.  At the bottom of my top-level CMakeLists.txt file
> I have the following:

It has been reported a bug/issue using CPack RPM generator
 for rpm 4.6.0 on Fedora 10 recently on this list.

[...]


> It seems that the absolute path to my install dir is being appended to the
> "_CPack_Packages/Linux/RPM/Server-1.0.1-Linux" path components, and the
> expected directory for the copy source does not exist.  Anyone have any
> ideas on why this absolute/relative path name wackiness is happening and how
> to correctly generate the RPM?

Not sure but for the CPack RPM to work you may need to

SET(CPACK_SET_DESTDIR ON)

Moreover you may be able to have more informations on what happen
with CPeck RPM if you call


cd <to_builddir>
cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM

more info there:
http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29



-- 
Erk


More information about the CMake mailing list