summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cincludes.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-26 23:05:09 +0800
committerruki <[email protected]>2023-02-26 23:05:09 +0800
commit319e3efdbdd42ca2283e8d09a169fe9f8a8fd7c2 (patch)
treea042e4a96da9969e643d47daf6666c6ff2c4b906 /xmake/includes/check_cincludes.lua
parent3f0c48dcfb366e61b9c8d2c1c0d6f8a565039061 (diff)
improve includes
Diffstat (limited to 'xmake/includes/check_cincludes.lua')
-rw-r--r--xmake/includes/check_cincludes.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/includes/check_cincludes.lua b/xmake/includes/check_cincludes.lua
index 8bed49968..bc6eac5d9 100644
--- a/xmake/includes/check_cincludes.lua
+++ b/xmake/includes/check_cincludes.lua
@@ -27,7 +27,7 @@
--
function check_cincludes(definition, includes, opt)
opt = opt or {}
- local optname = "__" .. (opt.name or definition)
+ local optname = opt.name or ("__" .. definition)
save_scope()
option(optname)
set_showmenu(false)
@@ -51,7 +51,7 @@ end
--
function configvar_check_cincludes(definition, includes, opt)
opt = opt or {}
- local optname = "__" .. (opt.name or definition)
+ local optname = opt.name or ("__" .. definition)
local defname, defval = table.unpack(definition:split('='))
save_scope()
option(optname)