[CMake] Change RPATH at the packaging stage
Vyacheslav Karamov
UbuntuList at yandex.ru
Thu Nov 1 15:58:41 EDT 2012
Hi All!
Is it possible to change rpath at the packaging stage?
I have CMake based project with CPack directives in its CMake script:
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
SET(install_dir "/opt/chatterbox")
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH "/usr/local/lib")
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
...
endif()
More information about the CMake
mailing list