File win32-no-sdl-download.patch of Package mingw64-CatacombGL
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ee636f..50481cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,22 +31,7 @@ add_subdirectory(src/Armageddon)
add_subdirectory(src/Catacomb3D)
if(WIN32)
- # On Windows, the SDL2 development package is fetched from Github.
- include(FetchContent)
-
- if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
- cmake_policy(SET CMP0135 NEW)
- endif()
-
- FetchContent_Declare(
- sdldev
- URL https://github.com/libsdl-org/SDL/releases/download/release-2.30.6/SDL2-devel-2.30.6-VC.zip
- URL_MD5 54e68b9c4627627107105fa108bf7eed
- )
-
- FetchContent_MakeAvailable(sdldev)
- set(SDL2_PATH ${sdldev_SOURCE_DIR})
- find_package(SDL2 REQUIRED CONFIG PATHS ${sdldev_SOURCE_DIR}/cmake NO_DEFAULT_PATH)
+ find_package(SDL2 REQUIRED)
target_link_libraries( CatacombGL_Engine
"shlwapi"