mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
Fix support of CMake OPTION_WAYLAND_ONLY.
This commit is contained in:
+4
-1
@@ -664,7 +664,10 @@ if (OPTION_USE_WAYLAND)
|
||||
if (OPTION_USE_SYSTEM_LIBDECOR)
|
||||
list (APPEND OPTIONAL_LIBS "-ldecor-0")
|
||||
endif (OPTION_USE_SYSTEM_LIBDECOR)
|
||||
list (APPEND OPTIONAL_LIBS "-lwayland-cursor -lwayland-client -lxkbcommon -ldl -ldbus-1 -lXcursor -lXrender -lXinerama -lXfixes -lXft -lXext -lX11")
|
||||
list (APPEND OPTIONAL_LIBS "-lwayland-cursor -lwayland-client -lxkbcommon -ldl -ldbus-1")
|
||||
if (NOT OPTION_WAYLAND_ONLY)
|
||||
list (APPEND OPTIONAL_LIBS "-lXcursor -lXrender -lXinerama -lXfixes -lXft -lXext -lX11")
|
||||
endif (OPTION_WAYLAND_ONLY)
|
||||
if (GTK_FOUND)
|
||||
list (APPEND OPTIONAL_LIBS ${GTK_LDFLAGS} )
|
||||
endif (GTK_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user