[CMake] CPack (RPM) and install()
Magnus Therning
magnus at therning.org
Wed Jun 23 10:09:42 EDT 2010
The documentation for install() is clear, an absolute path (e.g.
'/usr/lib') is used directly and relative path (e.g. 'lib') is
prefixed by CMAKE_INSTALL_PREFIX. Another thing to note is that 'make
DESTDIR=foo install' *always* works as expected!
However, the relation between install() and CPack is unclear
- For some files I accidentally had an absolute install path, and
during 'make package' these files got installed in the file system and
they were left out of the RPM. I naively assumed that the RPM builder
would use DESTDIR to control where things end up, but I must be wrong.
Is this a bug?
- The variable CMAKE_INSTALL_PREFIX is not used at all during RPM
building. CMAKE_INSTALL_PREFIX is /usr/local, but files get put into
/usr in the RPM. Is this a bug?
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
More information about the CMake
mailing list