From: Vsevolod Stakhov Date: Sun, 24 May 2015 17:00:41 +0000 (+0100) Subject: Fix build on FreeBSD < 10. X-Git-Tag: 0.9.5~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2eb837459e028b2b2eb94859034c0c87bb1599a6;p=rspamd.git Fix build on FreeBSD < 10. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c68613c8c..d90d9c741 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -444,9 +444,6 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") DOC "Path to libutil header") IF(_LIBUTIL_H) SET(HAVE_LIBUTIL_H 1) - INCLUDE_DIRECTORIES(${_LIBUTIL_H}) - LIST(APPEND CMAKE_REQUIRED_INCLUDES ${_LIBUTIL_H}) - SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES} -L${LIBUTIL_LIBRARY};-lutil") LIST(APPEND RSPAMD_REQUIRED_LIBRARIES util) CHECK_FUNCTION_EXISTS(pidfile_open HAVE_PIDFILE) CHECK_FUNCTION_EXISTS(pidfile_fileno HAVE_PIDFILE_FILENO)