Răsfoiți Sursa

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

Ryan C. Gordon 1 an în urmă
părinte
comite
fbed34a645
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.")