FLTK logo

[master] 7d8885d - CMake build for Wayland/X11 hybrid: check for libx???-dev packages

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] 7d8885d - CMake build for Wayland/X11 hybrid: check for libx???-dev packages "ManoloFLTK" Nov 23, 2022  
 
commit 7d8885d6d8cd4c1ddabfb608a875a7e470905a16
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Nov 23 19:00:05 2022 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Nov 23 19:00:05 2022 +0100

    CMake build for Wayland/X11 hybrid: check for libx???-dev packages

 CMake/options.cmake | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git CMake/options.cmake CMake/options.cmake
index 8d30fa8..822f69e 100644
--- CMake/options.cmake
+++ CMake/options.cmake
@@ -231,10 +231,25 @@ if (UNIX)
     unset (OPTION_USE_XCURSOR CACHE)
     unset (OPTION_USE_XFIXES CACHE)
     if (X11_FOUND)
+      if (NOT X11_Xfixes_FOUND)
+        message(FATAL_ERROR "*** Terminating: Install package libxfixes-dev")
+      endif()
       set (HAVE_XFIXES 1)
+      if (NOT X11_Xrender_FOUND)
+        message(FATAL_ERROR "*** Terminating: Install package libxrender-dev")
+      endif()
       set (HAVE_XRENDER 1)
+      if (NOT X11_Xft_FOUND)
+        message(FATAL_ERROR "*** Terminating: Install package libxft-dev")
+      endif()
       set (USE_XFT 1)
+      if (NOT X11_Xcursor_FOUND)
+        message(FATAL_ERROR "*** Terminating: Install package libxcursor-dev")
+      endif()
       set (HAVE_XCURSOR 1)
+      if (NOT X11_Xinerama_FOUND)
+        message(FATAL_ERROR "*** Terminating: Install package libxinerama-dev")
+      endif()
       set (HAVE_XINERAMA 1)
     endif (X11_FOUND)
     unset (OPTION_USE_PANGO CACHE)
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'.