From 3923f68fae723b8c4e2f6ffeee2f73a98b516df1 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Tue, 8 Aug 2023 20:00:26 -0600 Subject: [PATCH] cmake: fix regression for building SDL statically (#2894) --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)