File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ endif()
163163# We still use gtk on Linux for the file browser dialog in "native" mode)
164164if (LINUX )
165165 pkg_check_modules (GTK QUIET IMPORTED_TARGET REQUIRED gtk+-3.0 )
166+ pkg_search_module (WAYLAND_CLIENT wayland-client IMPORTED_TARGET GLOBAL REQUIRED )
166167endif ()
167168
168169#WORKAROUND Fedora 38 does not include Threads from the glslang .cmake file, fixed in Fedora 39+
Original file line number Diff line number Diff line change @@ -196,6 +196,10 @@ target_include_directories(ngscopeclient
196196#Linker settings
197197if (LINUX )
198198 set (PLATFORM_LIBS X11)
199+ if (${WAYLAND_CLIENT_FOUND} )
200+ list (APPEND PLATFORM_LIBS ${WAYLAND_CLIENT_MODULE_NAME} )
201+ target_include_directories (ngscopeclient SYSTEM PRIVATE ${WAYLAND_CLIENT_INCLUDE_DIRS} )
202+ endif ()
199203else ()
200204 set (PLATFORM_LIBS "" )
201205endif ()
You can’t perform that action at this time.
0 commit comments