2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>:
> 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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to