Browse Source

cmake: Don't warn about lack of X11/Wayland backend on Emscripten.

Ryan C. Gordon 1 year ago
parent
commit
fbed34a645
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmake/macros.cmake

+ 1 - 1
cmake/macros.cmake

@@ -394,7 +394,7 @@ function(SDL_PrintSummary)
     message(STATUS "")
     message(STATUS "")
   endif()
   endif()
 
 
-  if(UNIX AND NOT (ANDROID OR APPLE))
+  if(UNIX AND NOT (ANDROID OR APPLE OR EMSCRIPTEN))
     if(NOT (HAVE_X11 OR HAVE_WAYLAND))
     if(NOT (HAVE_X11 OR HAVE_WAYLAND))
       message(STATUS "SDL is being built without a X11 or wayland video driver.")
       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 "The library will not be able to create windows on most unix environments.")