add mingw-w64 support

This commit is contained in:
2021-11-30 19:50:40 +01:00
parent dc37ad54ec
commit ec98df52d7
8 changed files with 28 additions and 9 deletions

View File

@ -26,7 +26,11 @@ add_subdirectory("physfs")
if(NOT MM_HEADLESS)
if(NOT EMSCRIPTEN)
find_package(SDL2 REQUIRED)
if(VCPKG_TARGET_TRIPLET)
find_package(SDL2 CONFIG REQUIRED)
else() # HACK: fix sdl find module
find_package(SDL2 REQUIRED)
endif()
endif()
if(NOT MM_OPENGL_3_GLES)