summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/lcurses/xmake.lua1
-rw-r--r--core/xmake.lua2
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?