From a6b3903b89618f25260edb5f7923a3fbf8571681 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 8 Nov 2022 11:37:49 +0100 Subject: Wayland + CMake: fix generated fltk-config that lacked -lX11 --- CMake/options.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMake/options.cmake b/CMake/options.cmake index e8de29178..771b3030e 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -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) -- cgit v1.2.3