Commit 1abbc27d authored by Sylvain Berfini's avatar Sylvain Berfini

set CMAKE_INSTALL_RPATH to CMAKE_INSTALL_PREFIX if not set

parent e18a4389
......@@ -47,6 +47,11 @@ include(GNUInstallDirs)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
if (NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX})
message("Setting install rpath to ${CMAKE_INSTALL_RPATH}")
endif()
if(ENABLE_MBEDTLS)
find_package(MbedTLS)
if(MBEDTLS_FOUND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment