瀏覽代碼

fix ncurses include

ruki 5 年之前
父節點
當前提交
ac5d5f33b1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/n/ncurses/xmake.lua

+ 2 - 2
packages/n/ncurses/xmake.lua

@@ -10,13 +10,13 @@ package("ncurses")
 
 
     add_configs("widec", { description = "Compile with wide-char/UTF-8 code.", default = true, type = "boolean"})
     add_configs("widec", { description = "Compile with wide-char/UTF-8 code.", default = true, type = "boolean"})
 
 
-    add_includedirs("include/ncurses", "include")
-
     on_load(function (package)
     on_load(function (package)
         if package:config("widec") then
         if package:config("widec") then
             package:add("links", "ncursesw", "formw", "panelw", "menuw")
             package:add("links", "ncursesw", "formw", "panelw", "menuw")
+            package:add("includedirs", "include/ncursesw", "include")
         else
         else
             package:add("links", "ncurses", "form", "panel", "menu")
             package:add("links", "ncurses", "form", "panel", "menu")
+            package:add("includedirs", "include/ncurses", "include")
         end
         end
     end)
     end)