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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to