@@ -214,7 +214,7 @@ else()
214214endif ()
215215
216216# Dependencies version, this must match the number in external_deps/build.sh
217- set (DEPS_VERSION 10 )
217+ set (DEPS_VERSION 11 )
218218
219219option (USE_EXTERNAL_DEPS "Download or reuse dependencies from EXTERNAL_DEPS_DIR (mandatory for building and running NaCl .nexe binaries)." ON )
220220
@@ -725,30 +725,12 @@ endif()
725725
726726# SDL, required for all targets on win32 because of iconv and SDL_SetHint(SDL_TIMER_RESOLUTION, 0)
727727if (BUILD_CLIENT OR WIN32 )
728- find_package (SDL2 CONFIG)
729-
730- if (SDL2_SDL2main_FOUND)
731- mark_as_advanced (SDL2_DIR)
732- else ()
733- # We cannot use REQUIRED because it would look
734- # for OldSDL2_FOUND instead of SDL2_FOUND.
735- find_package (OldSDL2)
736-
737- if (NOT SDL2_FOUND)
738- message (FATAL_ERROR "Could NOT find SDL2" )
739- endif ()
740-
741- include_directories (${SDL2_INCLUDE_DIR} )
742-
743- mark_as_advanced (SDL2MAIN_LIBRARY SDL2_LIBRARY SDL2_INCLUDE_DIR)
744- endif ()
728+ find_package (SDL3 REQUIRED CONFIG)
745729
746730 if (WIN32 )
747- set (LIBS_ENGINE_BASE ${LIBS_ENGINE_BASE}
748- $<$<TARGET_EXISTS:SDL2::SDL2main>:SDL2::SDL2main> SDL2::SDL2)
731+ set (LIBS_ENGINE_BASE ${LIBS_ENGINE_BASE} SDL3::SDL3)
749732 else ()
750- set (LIBS_CLIENT ${LIBS_CLIENT}
751- $<$<TARGET_EXISTS:SDL2::SDL2main>:SDL2::SDL2main> SDL2::SDL2)
733+ set (LIBS_CLIENT ${LIBS_CLIENT} SDL3::SDL3)
752734 endif ()
753735endif ()
754736
@@ -1100,7 +1082,7 @@ if (DEPS_DIR AND (BUILD_CLIENT OR BUILD_TTY_CLIENT OR BUILD_SERVER OR BUILD_DUMM
11001082
11011083 # Windows requires some libraries from external_deps
11021084 if (WIN32 )
1103- file (GLOB RUNTIME_LIBS ${DEPS_DIR} /bin/*.dll ${DEPS_DIR} /SDL2 /lib/*/SDL2 .dll)
1085+ file (GLOB RUNTIME_LIBS ${DEPS_DIR} /bin/*.dll ${DEPS_DIR} /SDL3 /lib/*/SDL3 .dll)
11041086 foreach (RUNTIME_LIB ${RUNTIME_LIBS} )
11051087 add_custom_command (TARGET runtime_deps PRE_BUILD
11061088 COMMAND ${CMAKE_COMMAND} -E copy_if_different
0 commit comments