diff options
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/options.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index f9855a298..063dc48b6 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -310,6 +310,14 @@ if(UNIX) endif(FLTK_BACKEND_WAYLAND) if(FLTK_USE_WAYLAND) + pkg_get_variable(PROTOCOLS wayland-protocols pkgdatadir) + string(REPLACE "//" "/" PROTOCOLS ${PROTOCOLS}) + if(EXISTS ${PROTOCOLS}/staging/xdg-dialog/xdg-dialog-v1.xml) + set(HAVE_XDG_DIALOG 1) + message(STATUS "Found dev files for Wayland protocol 'XDG dialog windows'") + else() + set(HAVE_XDG_DIALOG 0) + endif() if(FLTK_BACKEND_X11) include(FindX11) endif() |
