Eric Noulard wrote:
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.

...no change that I can see. Ah, should I be setting CMAKE_INSTALL_PREFIX to anything special?

--
Matthew
I don't see what C++ has to do with keeping people from shooting themselves in the foot. C++ will happily load the gun, offer you a drink to steady your nerves, and help you aim. -- Peter da Silva (from cluefire.net)

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to