summaryrefslogtreecommitdiff
path: root/CMake/variables.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/variables.cmake')
-rw-r--r--CMake/variables.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMake/variables.cmake b/CMake/variables.cmake
index 27672c7d5..8908bd513 100644
--- a/CMake/variables.cmake
+++ b/CMake/variables.cmake
@@ -43,6 +43,11 @@ if (WIN32)
list (APPEND FLTK_LDLIBS -lole32 -luuid -lcomctl32 -lws2_32)
elseif (APPLE AND NOT OPTION_APPLE_X11)
list (APPEND FLTK_LDLIBS "-framework Cocoa")
+elseif (OPTION_USE_WAYLAND)
+ list (APPEND FLTK_LDLIBS "-lwayland-cursor -lwayland-client -lxkbcommon -ldbus-1")
+ if (OPTION_USE_SYSTEM_LIBDECOR)
+ list (APPEND FLTK_LDLIBS "-ldecor-0")
+ endif (OPTION_USE_SYSTEM_LIBDECOR)
else ()
list (APPEND FLTK_LDLIBS -lm)
endif (WIN32)