Skip to content

Commit

Permalink
Fix SDL2 includes for ImGui on Windows/vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaschke committed Apr 10, 2024
1 parent 719f930 commit 2ff42fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ImGui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ add_library(ImGui STATIC
vendor/imgui/backends/imgui_impl_opengl3_loader.h
)

target_link_libraries(ImGui
PUBLIC
SDL2::SDL2$<$<STREQUAL:${SDL2_LINKAGE},static>:-static>
)

if(ENABLE_FREETYPE AND Freetype_FOUND)
target_sources(ImGui
PRIVATE
Expand Down

0 comments on commit 2ff42fe

Please sign in to comment.