From b31243892953c9495a49ed1e38f28383e7a74448 Mon Sep 17 00:00:00 2001 From: Gregory Economou Date: Mon, 15 Apr 2024 16:50:58 +0300 Subject: [PATCH] probably fixed the bit about not finding the right libs in some bsd installs --- cmake/osdetection.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/osdetection.cmake b/cmake/osdetection.cmake index 6e7178cb..874031b9 100644 --- a/cmake/osdetection.cmake +++ b/cmake/osdetection.cmake @@ -4,6 +4,9 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") set(FREEBSD true) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) + set(CMAKE_SKIP_INSTALL_RPATH false) + set(CMAKE_SKIP_RPATH false) endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")