CMake building: improve messages about necessary software packages
This commit is contained in:
parent
7d8885d6d8
commit
75b06d02c9
@ -232,25 +232,29 @@ if (UNIX)
|
||||
unset (OPTION_USE_XFIXES CACHE)
|
||||
if (X11_FOUND)
|
||||
if (NOT X11_Xfixes_FOUND)
|
||||
message(FATAL_ERROR "*** Terminating: Install package libxfixes-dev")
|
||||
message(WARNING "Install development headers for libXfixes (e.g., libxfixes-dev)")
|
||||
endif()
|
||||
set (HAVE_XFIXES 1)
|
||||
if (NOT X11_Xrender_FOUND)
|
||||
message(FATAL_ERROR "*** Terminating: Install package libxrender-dev")
|
||||
message(WARNING "Install development headers for libXrender (e.g., libxrender-dev)")
|
||||
endif()
|
||||
set (HAVE_XRENDER 1)
|
||||
if (NOT X11_Xft_FOUND)
|
||||
message(FATAL_ERROR "*** Terminating: Install package libxft-dev")
|
||||
message(WARNING "Install development headers for libXft (e.g., libxft-dev)")
|
||||
endif()
|
||||
set (USE_XFT 1)
|
||||
if (NOT X11_Xcursor_FOUND)
|
||||
message(FATAL_ERROR "*** Terminating: Install package libxcursor-dev")
|
||||
message(WARNING "Install development headers for libXcursor (e.g., libxcursor-dev)")
|
||||
endif()
|
||||
set (HAVE_XCURSOR 1)
|
||||
if (NOT X11_Xinerama_FOUND)
|
||||
message(FATAL_ERROR "*** Terminating: Install package libxinerama-dev")
|
||||
message(WARNING "Install development headers for libXinerama (e.g., libxinerama-dev)")
|
||||
endif()
|
||||
set (HAVE_XINERAMA 1)
|
||||
if (NOT (X11_Xfixes_FOUND AND X11_Xrender_FOUND AND X11_Xft_FOUND AND X11_Xcursor_FOUND
|
||||
AND X11_Xinerama_FOUND))
|
||||
message (FATAL_ERROR "*** Terminating: one or more required software package(s) missing.")
|
||||
endif ()
|
||||
endif (X11_FOUND)
|
||||
unset (OPTION_USE_PANGO CACHE)
|
||||
set (OPTION_USE_PANGO TRUE CACHE BOOL "use lib Pango")
|
||||
@ -765,6 +769,9 @@ if (OPTION_USE_WAYLAND AND NOT OPTION_USE_SYSTEM_LIBDECOR)
|
||||
pkg_check_modules(GTK gtk+-3.0)
|
||||
if (GTK_FOUND)
|
||||
include_directories (${GTK_INCLUDE_DIRS})
|
||||
else ()
|
||||
message(WARNING "Installation of the development files for the GTK library "
|
||||
"(e.g., libgtk-3-dev) is recommended when using the gnome desktop.")
|
||||
endif (GTK_FOUND)
|
||||
endif (OPTION_ALLOW_GTK_PLUGIN)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user