From 4f56005d5c5c62251b7f109dca9f1c25b613a87f Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 7 Apr 2020 10:09:10 +0200 Subject: [PATCH] Fixes #421: added CMAKE_INSTALL_PREFIX/lib to link_directories on FreeBSD --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 820f255..fc735c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ if(APPLE) endif() if(${CMAKE_SYSTEM_NAME} MATCHES FreeBSD) link_directories(/usr/local/lib) + link_directories(${CMAKE_INSTALL_PREFIX}/lib) endif() option(BUILD_TESTING "Build tests")