Wayland + CMake: fix generated fltk-config that lacked -lX11

This commit is contained in:
ManoloFLTK 2022-11-08 11:37:49 +01:00
parent 1a41178e77
commit a6b3903b89

View File

@ -659,6 +659,9 @@ if ((X11_Xft_FOUND OR NOT USE_PANGOXFT) AND OPTION_USE_PANGO)
# *FIXME* Libraries should not be added explicitly if possible
if (OPTION_USE_WAYLAND)
list (APPEND FLTK_LDLIBS -lgtk-3 -lgdk-3 -lgio-2.0)
if (NOT OPTION_WAYLAND_ONLY)
list (APPEND FLTK_LDLIBS -lX11)
endif (NOT OPTION_WAYLAND_ONLY)
endif (OPTION_USE_WAYLAND)
if (APPLE)