diff options
Diffstat (limited to 'xmake/includes/check_cincludes.lua')
| -rw-r--r-- | xmake/includes/check_cincludes.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/includes/check_cincludes.lua b/xmake/includes/check_cincludes.lua index b812d9c64..c7051d56b 100644 --- a/xmake/includes/check_cincludes.lua +++ b/xmake/includes/check_cincludes.lua @@ -49,9 +49,10 @@ end function configvar_check_cincludes(definition, includes, opt) opt = opt or {} local optname = "__" .. (opt.name or definition) + local defname, defval = unpack(definition:split('=')) option(optname) add_cincludes(includes) - set_configvar(definition, 1) + set_configvar(defname, defval or 1) option_end() add_options(optname) end |
