diff options
| author | ruki <[email protected]> | 2019-03-15 22:42:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-15 10:16:08 +0800 |
| commit | cc02a8d5a54dd46a63f0da144cfb35b12dcf3263 (patch) | |
| tree | 826251e1187012ba02d8506771f138711d716088 /xmake/modules/lib/detect/has_cincludes.lua | |
| parent | 9036abe2d5d282bd19c9f6bdd2acee9ac03051fc (diff) | |
add opt.name for has_xxx
Diffstat (limited to 'xmake/modules/lib/detect/has_cincludes.lua')
| -rw-r--r-- | xmake/modules/lib/detect/has_cincludes.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/has_cincludes.lua b/xmake/modules/lib/detect/has_cincludes.lua index a70c17f56..195a482e1 100644 --- a/xmake/modules/lib/detect/has_cincludes.lua +++ b/xmake/modules/lib/detect/has_cincludes.lua @@ -30,7 +30,7 @@ import("lib.detect.check_cxsnippets") -- @param includes the includes -- @param opt the argument options -- .e.g --- { verbose = false, target = [target|option], config = {defines = "..", .. }} +-- { verbose = false, target = [target|option], configs = {defines = "..", .. }} -- -- @return true or false -- @@ -49,5 +49,6 @@ function main(includes, opt) opt.includes = includes -- has includes? - return check_cxsnippets("", opt) + local name = opt.name or "has_cincludes" + return check_cxsnippets({[name] = ""}, opt) end |
