]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix libutil detection on BSD systems
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Jul 2019 15:28:15 +0000 (16:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Jul 2019 15:28:15 +0000 (16:28 +0100)
CMakeLists.txt

index 88aea0b62f318ef40989f648b1f1692efcafa620..d108f51e356013c16bd590179a73a60e2344aea4 100644 (file)
@@ -506,7 +506,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "^.*BSD$|DragonFly")
                ROOT ${LIBUTIL_ROOT_DIR} OPTIONAL)
        IF(WITH_LIBUTIL)
                SET(HAVE_LIBUTIL_H 1)
-               LIST(APPEND RSPAMD_REQUIRED_LIBRARIES util)
+               LIST(APPEND CMAKE_REQUIRED_LIBRARIES util)
                CHECK_FUNCTION_EXISTS(pidfile_open HAVE_PIDFILE)
                CHECK_FUNCTION_EXISTS(pidfile_fileno HAVE_PIDFILE_FILENO)
        ENDIF()