xo-cmake: xo_toplevel_compile_options ++ set CMAKE_INSTALL_RPATH
This commit is contained in:
parent
8488b2a58a
commit
f4442c07a7
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ macro(xo_toplevel_compile_options)
|
|||
else()
|
||||
set(XO_COMPILE_OPTIONS ${XO_STANDARD_COMPILE_OPTIONS})
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_RPATH)
|
||||
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib CACHE STRING
|
||||
"runpath in installed libraries/executables")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue