diff --git a/CMakeLists.txt b/CMakeLists.txt index 22042aa549..d9ea8cd7c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)