[CMake] CPack packages are missing files

Rob Hasselbaum rob at hasselbaum.net
Sat Mar 20 18:57:25 EDT 2010


Thanks for the quick responses!

On Sat, Mar 20, 2010 at 6:20 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> Which one did you try?
> RPM, TGZ, ZIP ?

DEB and TGZ.

> when you do "make install" are you root or normal user?
> Are you installing files in absolute location or relatively to your
> install prefix?

I am root.

> You must be installing file with absolute pathname destination.
> If you do so you should:
>
> 1) try to avoid absolute pathname destination
>
> or
>
> 2) SET(CPACK_SET_DESTDIR ON) in your CMakeLists.txt
>
> see:
> http://www.cmake.org/pipermail/cmake/2008-July/022958.html

Some files are relative to the install prefix and some aren't, but I
don't think I can avoid it in some cases. For example, certain config
files must go into "/etc" or my tool won't work. But I will give
CPACK_SET_DESTDIR a try and report back.


More information about the CMake mailing list