From: G.E. Date: Mon, 15 Apr 2024 08:52:33 +0000 (+0300) Subject: first try at getting cmake to leave custom shared lib paths with the binary, X-Git-Tag: vectorscan/5.4.12^2~68^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e86b8524d6c5ee994eb52f4a619a17f58d2feb1;p=thirdparty%2Fvectorscan.git first try at getting cmake to leave custom shared lib paths with the binary, with package added compilers we need to find the right std libs from the compiler we added, not the base install libs. --- diff --git a/cmake/osdetection.cmake b/cmake/osdetection.cmake index 0e730fe3..1f35f1d3 100644 --- a/cmake/osdetection.cmake +++ b/cmake/osdetection.cmake @@ -4,6 +4,7 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") set(FREEBSD true) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")