summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-08 11:37:49 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-08 11:37:49 +0100
commita6b3903b89618f25260edb5f7923a3fbf8571681 (patch)
treede2dadc072f68bcb2bb75957fc1f40a75982ddff
parent1a41178e7763bcfb9739323b800365834d936205 (diff)
Wayland + CMake: fix generated fltk-config that lacked -lX11
-rw-r--r--CMake/options.cmake3
1 files changed, 3 insertions, 0 deletions
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)