Skip to content

Commit 517c0c7

Browse files
committed
Fix SDL2 includes for ImGui on Windows/vcpkg
1 parent 6a7c002 commit 517c0c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: ImGui.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ add_library(ImGui STATIC
1212
vendor/imgui/backends/imgui_impl_opengl3_loader.h
1313
)
1414

15+
target_link_libraries(ImGui
16+
PUBLIC
17+
SDL2::SDL2$<$<STREQUAL:${SDL2_LINKAGE},static>:-static>
18+
)
19+
1520
if(ENABLE_FREETYPE AND Freetype_FOUND)
1621
target_sources(ImGui
1722
PRIVATE

0 commit comments

Comments
 (0)