From 76f9a316b7729ac711b5a3fc51a0aea4f63e69c9 Mon Sep 17 00:00:00 2001 From: Tim Pierson Date: Mon, 25 Jan 2021 16:42:31 +0000 Subject: [PATCH] Fixes to make Darwin work (#7) `extra-libraries: sdl2` needs to be `extra-libraries: SDL2`, and we need a dependency on `OpenGL`. --- dear-imgui.cabal | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dear-imgui.cabal b/dear-imgui.cabal index 6f8f5c0..7176171 100644 --- a/dear-imgui.cabal +++ b/dear-imgui.cabal @@ -56,6 +56,8 @@ library if os(windows) extra-libraries: opengl32 + if os(darwin) + frameworks: OpenGL else extra-libraries: GL @@ -70,7 +72,7 @@ library if os(windows) || os(darwin) extra-libraries: - sdl2 + SDL2 else pkgconfig-depends: sdl2