From ceca3dd6607f247d0d7ce12fbbd4623320277aac Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 10 Mar 2023 22:04:35 -0600 Subject: [PATCH] chore: explicitly link SDL2 TODO: What happens on Windows? macOS? --- build.zig | 2 ++ 1 file changed, 2 insertions(+) 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); },