From 0b90028b5233b8972ffb188615131bef18d948dd Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 26 Mar 2023 20:58:01 -0500 Subject: [PATCH] chore: move thing --- build.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 3c1e15a..0bcfee1 100644 --- a/build.zig +++ b/build.zig @@ -105,9 +105,10 @@ pub fn package( zgui_c_cpp.linkSystemLibraryName("dwmapi"); }, .sdl2_opengl3 => { + zgui_c_cpp.linkSystemLibrary("SDL2"); + 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 => {}, }