<div dir="ltr"><span style="font-size:12.8px">I'm currently "fighting" with the relocation using cpack ...</span><div style="font-size:12.8px">When creating an executable AND a library resulting in</div><div style="font-size:12.8px">two RPM's with two different paths lets say ...<br><br><font face="monospace, monospace" size="1"> - /foo/bin/mybin        | executable</font></div><div style="font-size:12.8px"><font face="monospace, monospace" size="1"> - /usr/local/include    | library headers</font></div><div style="font-size:12.8px"><font face="monospace, monospace" size="1"> - /usr/local/lib64      | library binary file</font></div><div style="font-size:12.8px"><br>That's how I configured the components ...<br><br></div><div style="font-size:12.8px"><font face="monospace, monospace" size="1">set(CPACK_RPM_bin_PACKAGE_PREFIX "/foo/bin")<br></font></div><div style="font-size:12.8px"><font face="monospace, monospace" size="1">set(CPACK_RPM_devel_PACKAGE_PREFIX "/usr/local")<br></font><br>I alway get this:<br><br><div><font face="monospace, monospace" size="1">CMake Warning (dev) at /usr/share/cmake-3.4/Modules/CPackRPM.cmake:633 (message):</font></div><div><font face="monospace, monospace" size="1">  CPackRPM:Warning: Path /usr/lib64/libfoo.a is not on one of the</font></div><div><font face="monospace, monospace" size="1">  relocatable paths! Package will be partially relocatable.</font></div><div><font face="monospace, monospace" size="1">Call Stack (most recent call first):</font></div><div><font face="monospace, monospace" size="1">  /usr/share/cmake-3.4/Modules/CPackRPM.cmake:1282 (cpack_rpm_prepare_relocation_paths)</font></div><div><font face="monospace, monospace" size="1">  /usr/share/cmake-3.4/Modules/CPackRPM.cmake:1770 (cpack_rpm_generate_package)</font></div></div><div style="font-size:12.8px"><br>I guess ... I can use CPACK_RPM_RELOCATION_PATHS but my problem is<br>that I don't know the installation path in the sub directory of the library since<br>I did add_subdirectory(Library) ...<br><br>Any idea, comments, proposes?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Kind Regards,<br>Thomas</div></div>