diff --git a/build.zig b/build.zig index 084a984..f45339b 100644 --- a/build.zig +++ b/build.zig @@ -76,6 +76,8 @@ pub fn link(exe: *std.Build.CompileStep, options: Options) void { exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); }, .sdl2_opengl3 => { + exe.linkSystemLibrary("SDL2"); + exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); },