diff options
| author | ruki <[email protected]> | 2019-02-05 00:46:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-04 22:40:33 +0800 |
| commit | 9b0e2b87b998b58788f3256c20ffc23f0b49190a (patch) | |
| tree | df037bda21f2e0da055ec363847be7f8cdd9ad10 /xmake/includes/check_features.lua | |
| parent | 631ea0396a19a6b39006a5368eb222d9eb382c5c (diff) | |
fix check xxx bug
Diffstat (limited to 'xmake/includes/check_features.lua')
| -rw-r--r-- | xmake/includes/check_features.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check_features.lua b/xmake/includes/check_features.lua index 295a7fc5e..56b3b9dcf 100644 --- a/xmake/includes/check_features.lua +++ b/xmake/includes/check_features.lua @@ -31,7 +31,7 @@ -- function check_features(definition, features, opt) opt = opt or {} - option(definition) + option(opt.name or definition) add_features(features) add_defines(definition) if opt.languages then @@ -47,7 +47,7 @@ function check_features(definition, features, opt) add_cxxflags(opt.cxxflags) end option_end() - add_options(definition) + add_options(opt.name or definition) end -- check features and add macro definition to the configuration files @@ -59,7 +59,7 @@ end -- function configvar_check_features(definition, features, opt) opt = opt or {} - option(definition) + option(opt.name or definition) add_features(features) set_configvar(definition, 1) if opt.languages then @@ -75,5 +75,5 @@ function configvar_check_features(definition, features, opt) add_cxxflags(opt.cxxflags) end option_end() - add_options(definition) + add_options(opt.name or definition) end |
