Print message in summary when a X11 or wayland video driver is not found

This commit is contained in:
huanhuan-jiang 2024-07-16 10:53:57 -07:00 committed by Sam Lantinga
parent 70727d36b2
commit 723c1cc5b3
1 changed files with 8 additions and 0 deletions

View File

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