[CMake] Cpack ignoring file installs

Anatoly Shirokov shirokov_a at mail.ru
Fri Dec 18 16:38:33 EST 2009


This is important that DESTINATION must not be absolute:

install(... DESTINANATION bin ) - correct
install(... DESTINANATION ${CMAKE_INSTALL_PREFIX}/bin ) - incorrect

BR,
Anatoly

Daniel Stonier :
> This is my first shot at cpack, so I may be missing something entirely 
> obvious here.
>
> I have two parts to the install on my project, one are the libs, the 
> other are the headers. The libs are installed via the INSTALL(TARGET 
> ...) command, whereas the headers are installed via the INSTALL(FILES 
> ... ) command.
>
> A normal cmake install will install everything, but cpack, when run, 
> will only pick up the libraries. 
>
> I can't seem to find any information that seems to indicate that this 
> is normal in the documentation, but neither can I find any information 
> that say this is what it appears to be - broken.
>
> Any pointers?
>
>
> Cheers, 
> Daniel.
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091219/75b7a9d5/attachment.htm>


More information about the CMake mailing list