diff options
author | antenore@simbiosi.org <antenore@simbiosi.org> | 2016-03-02 03:18:56 +0300 |
---|---|---|
committer | Giovanni Panozzo <giovanni@panozzo.it> | 2016-03-05 14:47:26 +0300 |
commit | 84d9b54d49efc63e06783a71f262ec8c53a6c946 (patch) | |
tree | 6ce5352fb102c6466695ffcbcb7915432e0f5242 /CMakeLists.txt | |
parent | 6e53ad982334ed4e8fae0e629b562d6d851af12c (diff) |
Build fixes for FreeBSD
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7686003d3..ea1f9f2a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,6 +95,15 @@ check_include_files(errno.h HAVE_ERRNO_H) include_directories(.) include_directories(remmina/include) +# FreeBSD + +if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + include_directories(/usr/local/include) + link_directories(/usr/local/lib) + set(CMAKE_REQUIRED_INCLUDES /usr/local/include) + set(CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX} /usr/local/lib) +endif() + # Versioning set(WITH_LIBRARY_VERSIONING "ON") set(REMMINA_VERSION_MAJOR "1") |