From 5ef5ff1b3714ea9ff596aa15beb207dc4359d0e2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 31 Jul 2021 19:21:18 +0100 Subject: [PATCH] Fix an issue where libEvent is not available Ensure compilation with DBus but without libEvent still works --- CMakeModules/SetupFGFSLibraries.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeModules/SetupFGFSLibraries.cmake b/CMakeModules/SetupFGFSLibraries.cmake index 1832b2e6a..ae6396946 100644 --- a/CMakeModules/SetupFGFSLibraries.cmake +++ b/CMakeModules/SetupFGFSLibraries.cmake @@ -122,6 +122,8 @@ function (setup_fgfs_library_includes target) endif() if (ENABLE_SWIFT) + _apply_all_target_includes(${target} ${dbus_target} ${libEvent_target}) + elseif(HAVE_DBUS) _apply_all_target_includes(${target} ${dbus_target}) endif()