Skip to content

Commit

Permalink
Fix issue when compiling with SDL_SHARED=OFF;SDL_STATIC=ON
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Oct 22, 2024
1 parent ba2f78a commit 4474753
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3520,7 +3520,9 @@ if(SDL_TEST)
endif()

if(MSVC AND NOT SDL_LIBC)
set(targets SDL2)
if(TARGET SDL2)
list(APPEND targets SDL2-static)
endif()
if(TARGET SDL2-static)
list(APPEND targets SDL2-static)
endif()
Expand Down

0 comments on commit 4474753

Please sign in to comment.