[CMake] how to make OpenGTL rpm?
Eric Noulard
eric.noulard at gmail.com
Tue Jul 15 16:24:24 EDT 2008
2008/7/15 Matthew Woehlke <mw_triad at users.sourceforge.net>:
> I'm trying to build an rpm of OpenGTL, with no success. I added
> 'set(CPACK_GENERATOR "TGZ;RPM")' and 'include(CPack)' to the CMakeLists.txt,
> but when I try to build the RPM, it wants to write to /usr (ah, shouldn't
> rpm building NOT need to install first?!), and if I run it as root, it
> installs but yields an empty rpm.
I don't know OpenGTL but it must use "absolute install path".
Try to add
SET(CPACK_SET_DESTDIR "ON"
to the CMakeLists.txt and retry.
--
Erk
More information about the CMake
mailing list