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)