[CMake] cpack problem: only a few files are included in tgz
Eric Noulard
eric.noulard at gmail.com
Wed Mar 7 12:05:57 EST 2007
2007/3/7, Pierre Chifflier <chifflier at cpe.fr>:
> > >For ex, the .so files are not included, as well as the .h files, etc.
> > >Files are present in the directory after running make install, and
> > >it seems cpack does not log anything useful ..
> >
> > It has been reported some problem with CPack if you
> > use "absolute" filename in your INSTALL command.
>
> Tried with absolute or relative CMAKE_INSTALL_PREFIX value, but no
> change :/ (By the way, running cmake always convert the path to
> absolute in the cache).
You should not specify CMAKE_INSTALL_PREFIX in your INSTALL
command destination:
from your http://www.wzdftpd.net/trac/browser/trunk/CMakeLists.txt
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/wzdftpd.pc
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
should be:
NSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/wzdftpd.pc
DESTINATION lib/pkgconfig)
As stated in the documentation: (try cmake --help-command INSTALL)
>>>>
DESTINATION arguments specify the
directory on disk to which a file will be installed. If a full path
(with a leading slash or drive letter) is given it is used directly.
If a relative path is given it is interpreted relative to the value of
CMAKE_INSTALL_PREFIX.
>>>>
May be you could tell us precisely what file are included or not
as well as pointing us the correspond CMakeLists.txt containing
the INSTALL command.
> >
> > You may search the Mailing List archive for a discussion on the subject.
>
> Yes, already done that. It does not help for now :/
Have a look here:
http://www.cmake.org/pipermail/cmake/2006-December/012312.html
and may be the follow-up there:
http://www.cmake.org/pipermail/cmake/2007-January/012524.html
By the way could you tell us the version of CMake you are using?
--
Erk
More information about the CMake
mailing list