From e220775b21a0cde2845d23d46b5c18f4c9351e4f Mon Sep 17 00:00:00 2001 From: sheaf Date: Tue, 26 Jan 2021 12:01:41 +0100 Subject: [PATCH] Fix conditional in cabal file (#12) The if conditionals were incorrectly nested, which caused a problem with OpenGL on Windows. --- dear-imgui.cabal | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dear-imgui.cabal b/dear-imgui.cabal index 7176171..9b78bd8 100644 --- a/dear-imgui.cabal +++ b/dear-imgui.cabal @@ -56,11 +56,13 @@ library if os(windows) extra-libraries: opengl32 - if os(darwin) - frameworks: OpenGL else - extra-libraries: - GL + if os(darwin) + frameworks: + OpenGL + else + extra-libraries: + GL if flag(sdl) exposed-modules: