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 _______________________________________________ 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