FLTK logo

[master] 69df45d - CMake-based build under Linux shows whether X11 is used

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 69df45d - CMake-based build under Linux shows whether X11 is used "ManoloFLTK" 01:32 Mar 13  
 
commit 69df45d38b7009cb0e1ce932c8c5ed0c15b9a8dd
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Mar 13 09:26:55 2024 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Mar 13 09:26:55 2024 +0100

    CMake-based build under Linux shows whether X11 is used

 CMakeLists.txt | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git CMakeLists.txt CMakeLists.txt
index 7ac4e11..68ae7e9 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -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")
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.