diff --git a/ImGui.cmake b/ImGui.cmake index 4d1983a..f578fc6 100644 --- a/ImGui.cmake +++ b/ImGui.cmake @@ -12,6 +12,11 @@ add_library(ImGui STATIC vendor/imgui/backends/imgui_impl_opengl3_loader.h ) +target_link_libraries(ImGui + PUBLIC + SDL2::SDL2$<$:-static> + ) + if(ENABLE_FREETYPE AND Freetype_FOUND) target_sources(ImGui PRIVATE