From 2e86b8524d6c5ee994eb52f4a619a17f58d2feb1 Mon Sep 17 00:00:00 2001 From: "G.E." Date: Mon, 15 Apr 2024 11:52:33 +0300 Subject: [PATCH] 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. --- cmake/osdetection.cmake | 1 + 1 file changed, 1 insertion(+) 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")