diff options
| -rw-r--r-- | core/xmake.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index df84e81bb..ebe2c5553 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -83,6 +83,7 @@ option_end() -- the curses option option("curses") set_description("Enable or disable curses library") + add_deps("cosmocc") before_check(function (option) if is_plat("mingw") then option:add("cincludes", "ncursesw/curses.h") @@ -92,6 +93,11 @@ option("curses") option:add("links", "curses") end end) + after_check(function (option) + if option:dep("cosmocc"):enabled() then + option:enable(false) + end + end) add_defines("XM_CONFIG_API_HAVE_CURSES") option_end() |
