1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-12 23:02:59 +03:00

BUILD: use rpath for locating dynamic libraries

This commit is contained in:
Ilya Shipitsin 2021-09-08 10:41:15 +05:00
parent 26c8fbe538
commit dcb1023999

View File

@ -39,6 +39,12 @@ endif()
if(UNIX)
include(GNUInstallDirs)
#
# use rpath for locating installed libraries
#
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
include(CheckIncludeFile)
Check_Include_File(sys/auxv.h HAVE_SYS_AUXV)
if(EXISTS "/lib/systemd/system")