From 723c1cc5b36a445e5dd9fc2e58f551705be53089 Mon Sep 17 00:00:00 2001 From: huanhuan-jiang Date: Tue, 16 Jul 2024 10:53:57 -0700 Subject: [PATCH] Print message in summary when a X11 or wayland video driver is not found --- cmake/macros.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/macros.cmake b/cmake/macros.cmake index c250400b98..aab621d0d9 100644 --- a/cmake/macros.cmake +++ b/cmake/macros.cmake @@ -393,6 +393,14 @@ function(SDL_PrintSummary) message(STATUS " -DSDL_ARMNEON=OFF") message(STATUS "") endif() + + if(UNIX AND NOT (ANDROID OR APPLE)) + if(NOT (HAVE_X11 OR HAVE_WAYLAND)) + message(STATUS "SDL is being built without a X11 or wayland video driver.") + message(STATUS "The library will not be able to create windows on most unix environments.") + message(STATUS "") + endif() + endif() endfunction() function(SDL_install_pdb TARGET DIRECTORY)