fix cmake sdl finding, find_package for each cmake scope

This commit is contained in:
2022-10-31 22:35:55 +01:00
committed by Erik Scholz
parent 4d0f731d8d
commit dffbad65d2
5 changed files with 29 additions and 25 deletions

View File

@ -26,6 +26,7 @@ add_subdirectory("physfs")
if(NOT MM_HEADLESS)
if(NOT EMSCRIPTEN)
# TODO: move into imgui and soload, since they are the one requireing this
if(VCPKG_TARGET_TRIPLET)
find_package(SDL2 CONFIG REQUIRED)
else() # HACK: fix sdl find module