diff options
| author | ruki <[email protected]> | 2019-02-19 00:34:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-18 21:28:17 +0800 |
| commit | b9b6a34e539f3356717b5e4953d37f185ea86476 (patch) | |
| tree | aec2bd7ed3a5414351b4cbd22a7cb7c76d51ea7a /xmake/includes/check_cincludes.lua | |
| parent | 675353dcc422de761ebfe76f3857b98392d58e51 (diff) | |
improve check_xxx functions
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 |
