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

This commit is contained in:
ManoloFLTK 2022-11-23 19:00:05 +01:00
parent b6c5de7c05
commit 7d8885d6d8
1 changed files with 15 additions and 0 deletions

View File

@ -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)