]> source.dussan.org Git - rspamd.git/commitdiff
Fix build on FreeBSD < 10.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 May 2015 17:00:41 +0000 (18:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 May 2015 17:00:41 +0000 (18:00 +0100)
CMakeLists.txt

index c68613c8ca97b187f59dd9fa7c9020a10e9381d1..d90d9c7411c4edb31538ec282e5daf3e67afe9c5 100644 (file)
@@ -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)