From 1f4c721749bd7e7686b0bd48df5e8cfd19e625ca Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 17 Jan 2022 14:26:02 -0500 Subject: [PATCH] fix build in some cases link against SDL2-static --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52b0d67c..011902d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,11 +36,7 @@ else() set(SDL_SHARED ON) add_subdirectory(extern/SDL) include_directories(extern/SDL/include extern/imgui extern/IconFontCppHeaders extern/imgui/backends extern/igfd extern/fmt/include) - if (APPLE) - set(HAVE_SDL2 SDL2-static) - else() - set(HAVE_SDL2 SDL2) - endif() + set(HAVE_SDL2 SDL2-static) else() find_library(HAVE_SDL2 SDL2) endif()