diff --git a/dear-imgui.cabal b/dear-imgui.cabal index a445b03..def7e17 100644 --- a/dear-imgui.cabal +++ b/dear-imgui.cabal @@ -179,8 +179,10 @@ library imgui/imgui_draw.cpp imgui/imgui_tables.cpp imgui/imgui_widgets.cpp - extra-libraries: - stdc++ + if impl(ghc >= 9.4) + build-depends: system-cxx-std-lib + else + extra-libraries: stdc++ include-dirs: imgui build-depends: