summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-08 22:26:54 +0800
committerruki <[email protected]>2017-12-08 14:10:23 +0800
commit325c9ab3706736f3e5469b50325864514d2e03b1 (patch)
tree651ca5c920bd0f9696c27e5d284fb760fcb57789 /core/src
parentcb44535305f596bd757ffb58e5ae3cde6d3589fa (diff)
fix curses link order
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/xmake.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua
index 54b933102..d394b483c 100644
--- a/core/src/xmake/xmake.lua
+++ b/core/src/xmake/xmake.lua
@@ -27,10 +27,8 @@ target("xmake")
-- add readline
add_options("readline")
- if is_plat("windows") then
+ if is_plat("windows") or is_option("curses") then
add_defines("XM_CONFIG_API_HAVE_CURSES")
- else
- add_options("curses")
end