cmake: fix regression for building SDL statically (#2894)

This commit is contained in:
Tyler Wilding
2023-08-08 20:00:26 -06:00
committed by GitHub
parent a06a6c6416
commit 3923f68fae
+5 -1
View File
@@ -219,7 +219,11 @@ build_third_party_lib(zstd libzstd_static)
# build SDL
include(SDLOptions)
build_third_party_lib(SDL SDL2)
if(STATICALLY_LINK)
build_third_party_lib(SDL SDL2-static)
else()
build_third_party_lib(SDL SDL2)
endif()
# build imgui
include_directories(third-party/glad/include)