[CMake] problems with multiple relocateable components
Thomas Lehmann
thomas.lehmann at teamaol.com
Thu Jan 28 06:03:34 EST 2016
I'm currently "fighting" with the relocation using cpack ...
When creating an executable AND a library resulting in
two RPM's with two different paths lets say ...
- /foo/bin/mybin | executable
- /usr/local/include | library headers
- /usr/local/lib64 | library binary file
That's how I configured the components ...
set(CPACK_RPM_bin_PACKAGE_PREFIX "/foo/bin")
set(CPACK_RPM_devel_PACKAGE_PREFIX "/usr/local")
I alway get this:
CMake Warning (dev) at /usr/share/cmake-3.4/Modules/CPackRPM.cmake:633
(message):
CPackRPM:Warning: Path /usr/lib64/libfoo.a is not on one of the
relocatable paths! Package will be partially relocatable.
Call Stack (most recent call first):
/usr/share/cmake-3.4/Modules/CPackRPM.cmake:1282
(cpack_rpm_prepare_relocation_paths)
/usr/share/cmake-3.4/Modules/CPackRPM.cmake:1770
(cpack_rpm_generate_package)
I guess ... I can use CPACK_RPM_RELOCATION_PATHS but my problem is
that I don't know the installation path in the sub directory of the library
since
I did add_subdirectory(Library) ...
Any idea, comments, proposes?
Kind Regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160128/93e3b36d/attachment.html>
More information about the CMake
mailing list