Hi,

I want to link the library to all executables in project so I'm adding `<libname> -Wl,-rpath,<libdir>` to CMAKE_EXE_LINKER_FLAGS. That works fine however after install step this RPATH was not removed and full path to <libdir> remains as part of executable in LC_RPATH. As far as I understand there is no such variable for now in CMake that holds the list of RPATH directories that need to be removed on install step. If it is true what about adding new one, like CMAKE_INSTALL_DELETE_RPATH? Just for the record <libdir> is not a part of CMAKE_INSTALL_PREFIX or CMAKE_BINARY_DIR.

Ruslo
--

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

Reply via email to