----- Original Message ----- > I am trying to create a standalone build of our application on Linux. We are > currently building on a mix of Mint 17 and Ubuntu 14.04. I have been doing a > lot of reading about rpath, runpath and chrpath. The only way it would seem > to get this done is to adjust the rpath via the "chrpath" tool. The issue is > that during packaging, cmake is removing the rpath from the binaries which > kills the process of using chrpath. I have looked at the various *_RPATH* > cmake variables but none of the combinations seem to work correctly. CMake > always strips the rpath from the binaries. This is with a Qt5 application > which compiles against the Qt 5.4.1 version which is installed from the > Qt.io website.
Have you tried only setting the INSTALL_RPATH property on the targets? Or setting the CMAKE_INSTALL_RPATH in your top level CMakeLists.txt file. For example: if (CMAKE_SYSTEM_NAME MATCHES "Linux" ) set (CMAKE_ INSTALL _RPATH "\$ORIGIN" ) endif () That alone should be enough to give you rpaths in the install tree. Clint
-- 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