From 3bc379bc4e159df66023ade31931133f7c78cb1f Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 28 May 2025 21:13:10 +0200 Subject: Fix usage of FLTK_BACKEND_WAYLAND and FLTK_USE_WAYLAND - Do not change or remove the cache variable FLTK_BACKEND_WAYLAND: this is an option set (and must only be changed) by the user. - CMake/options.cmake: check Wayland availability if option FLTK_BACKEND_WAYLAND is ON and set the result variable FLTK_USE_WAYLAND accordingly. - Replace FLTK_BACKEND_WAYLAND with FLTK_USE_WAYLAND everywhere else, except as noted above: in options.cmake. --- CMake/variables.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMake/variables.cmake') diff --git a/CMake/variables.cmake b/CMake/variables.cmake index 4d1be9f2d..b2993f032 100644 --- a/CMake/variables.cmake +++ b/CMake/variables.cmake @@ -43,7 +43,7 @@ if(WIN32) list(APPEND FLTK_LDLIBS -lole32 -luuid -lcomctl32 -lws2_32 -lwinspool) elseif(APPLE AND NOT FLTK_BACKEND_X11) list(APPEND FLTK_LDLIBS ${FLTK_COCOA_FRAMEWORKS}) -elseif(FLTK_BACKEND_WAYLAND) +elseif(FLTK_USE_WAYLAND) foreach(_lib WLDCURSOR WLDCLIENT XKBCOMMON DBUS) list(APPEND FLTK_LDLIBS "${${_lib}_LDFLAGS}") endforeach() -- cgit v1.2.3