diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-11-24 09:08:46 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-11-24 09:08:46 +0100 |
| commit | 2356c9dcd6a78a3ec8fce3ab1647e771fb674a71 (patch) | |
| tree | 36ff44cec896d32627f2de989deaa3c84fe3bf18 | |
| parent | 75b06d02c99fde416cbf902c52ce3b8d0a4be6ec (diff) | |
CMake build for Wayland: check for presence of required GL-related software
| -rw-r--r-- | CMake/options.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake index 8d27c1121..094d44402 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -445,11 +445,13 @@ endif (HAVE_GL) if (OPTION_USE_GL) if (OPTION_USE_WAYLAND) - pkg_check_modules(WLDEGL wayland-egl) - if (NOT WLDEGL_FOUND) - message (STATUS "Module 'wayland-egl' is required to build for the Wayland backend.") + pkg_check_modules(WLD_EGL wayland-egl) + pkg_check_modules(PKG_EGL egl) + pkg_check_modules(PKG_GL gl) + if (NOT (WLD_EGL_FOUND AND PKG_EGL_FOUND AND PKG_GL_FOUND)) + message (STATUS "Modules 'wayland-egl, egl, and gl' are required to build for the Wayland backend.") message (FATAL_ERROR "*** Aborting ***") - endif (NOT WLDEGL_FOUND) + endif (NOT (WLD_EGL_FOUND AND PKG_EGL_FOUND AND PKG_GL_FOUND)) endif (OPTION_USE_WAYLAND) if (OPTION_APPLE_X11) set (OPENGL_FOUND TRUE) |
