From 55efe08bdfef961e9081f3cf63ba9c2c163fa8c4 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 50f3e3c..3c1e15a 100644 --- a/build.zig +++ b/build.zig @@ -107,6 +107,7 @@ pub fn package( .sdl2_opengl3 => { zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags); zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); + zgui_c_cpp.linkSystemLibrary("SDL2"); }, .no_backend => {}, }