From 51e355e4039d12ee2cc0f36dcea9ba96dcd91ed1 Mon Sep 17 00:00:00 2001 From: bceverly Date: Fri, 24 Nov 2017 08:54:24 -0500 Subject: [PATCH] Added support for FreeBSD --- src/gui/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 2ae957355..be2a49021 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -248,6 +248,10 @@ if(UNIX AND NOT APPLE) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") endif() +if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib") +endif() + if(NOT BUILD_OWNCLOUD_OSX_BUNDLE) if(NOT WIN32)