2023-05-25 16:25:06 +03:00
|
|
|
# RPATH configuration
|
|
|
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
|
|
|
|
if (APPLE)
|
2023-12-01 12:51:28 +03:00
|
|
|
file(RELATIVE_PATH FRAMEWORK_PATH ${CMAKE_INSTALL_FULL_BINDIR} ${CMAKE_INSTALL_FULL_LIBDIR})
|
|
|
|
set(CMAKE_INSTALL_RPATH "@loader_path/${FRAMEWORK_PATH}")
|
2023-05-25 16:25:06 +03:00
|
|
|
else (APPLE)
|
|
|
|
if (NOT FREEBSD)
|
|
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/..")
|
|
|
|
option(WITH_ADD_PLUGIN_TO_RPATH "Add extension and plugin path to RPATH" OFF)
|
|
|
|
if (WITH_ADD_PLUGIN_TO_RPATH)
|
|
|
|
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${FREERDP_EXTENSION_REL_PATH}:\$ORIGIN/../${FREERDP_PLUGIN_PATH}:${CMAKE_INSTALL_RPATH}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
|