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

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to