Update CMakeLists.txt

This commit is contained in:
Mohammed Alyousef 2023-07-07 01:57:04 +03:00 committed by ManoloFLTK
parent 18befa5e81
commit d939375a52

View File

@ -511,8 +511,8 @@ if (FLTK_USE_X11)
endif (FLTK_USE_X11)
if (OPTION_USE_WAYLAND)
include_directories(${DBUS_INCLUDE_DIRS})
pkg_check_modules(DBUS dbus-1)
include_directories(${DBUS_INCLUDE_DIRS})
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_CURRENT_BINARY_DIR} -fPIC -D_GNU_SOURCE")
if (DBUS_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAS_DBUS")