CMake-based build under Linux shows whether X11 is used

This commit is contained in:
ManoloFLTK 2024-03-13 09:26:55 +01:00
parent 40aa9c8609
commit 69df45d38b

View File

@ -311,15 +311,19 @@ endif()
if(UNIX AND NOT (APPLE AND NOT FLTK_BACKEND_X11))
if(FLTK_BACKEND_WAYLAND)
message(STATUS "Use Wayland : Yes (if available at run-time)")
if(FLTK_BACKEND_X11)
message(STATUS "Use Wayland : Yes (can also run as X11 client)")
else()
message(STATUS "Use Wayland : Yes (cannot run as X11 client)")
endif(FLTK_BACKEND_X11)
if(USE_SYSTEM_LIBDECOR)
message(STATUS "Use system libdecor : Yes")
else()
message(STATUS "Use system libdecor : No")
endif()
endif(USE_SYSTEM_LIBDECOR)
else()
message(STATUS "Use Wayland : No (therefore, X11 is used)")
endif()
endif(FLTK_BACKEND_WAYLAND)
if(FLTK_USE_CAIRO)
message(STATUS "All drawing uses Cairo : Yes")