From 09c69ad940d365caf650cecdda664b1f97b8d892 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 21 Aug 2024 22:53:54 +0800 Subject: disable curse --- core/xmake.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/xmake.lua') 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() -- cgit v1.3.1