diff options
| author | ruki <[email protected]> | 2020-07-30 22:35:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-30 22:35:54 +0800 |
| commit | 074ac6343053ad780ead8f626074a6e6bef2e330 (patch) | |
| tree | 36b35196e86ed7c4f594e85672ccf2db4b76dd8c | |
| parent | e8f683efc20cc570f755f1897a9fe49579447a54 (diff) | |
fix curses on xmake.lua
| -rw-r--r-- | core/src/lcurses/xmake.lua | 1 | ||||
| -rw-r--r-- | core/xmake.lua | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/src/lcurses/xmake.lua b/core/src/lcurses/xmake.lua index 771bf8111..9ad46d4e8 100644 --- a/core/src/lcurses/xmake.lua +++ b/core/src/lcurses/xmake.lua @@ -17,6 +17,7 @@ target("lcurses") -- add the common source files add_files("lcurses.c") + add_defines("XM_CONFIG_API_HAVE_CURSES", {public = true}) -- add options if is_plat("windows") then diff --git a/core/xmake.lua b/core/xmake.lua index ac5922bba..44238baeb 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -56,7 +56,6 @@ option("curses") set_description("Enable or disable curses library") add_links("curses") add_cincludes("curses.h") - add_defines("XM_CONFIG_API_HAVE_CURSES") option_end() -- the pdcurses option @@ -65,7 +64,6 @@ option("pdcurses") set_showmenu(true) set_description("Enable or disable pdcurses library") add_defines("PDCURSES") - add_defines("XM_CONFIG_API_HAVE_CURSES") option_end() -- only build xmake libraries for development? |
