xo-cmake: xo_toplevel_compile_options ++ set CMAKE_INSTALL_RPATH

This commit is contained in:
Roland Conybeare 2023-09-27 17:54:02 -04:00
commit f4442c07a7

View file

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