diff options
| author | ruki <[email protected]> | 2025-01-09 00:54:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-09 00:54:55 +0800 |
| commit | 7a4c72e8385d63e1588f8a1cd8b482cf8825d5fb (patch) | |
| tree | bce56e9961f650138c111d09a029961154faeaf4 /xmake/core/project/project.lua | |
| parent | 279b1f07740e235a0a5fddcf46937b829fd160d2 (diff) | |
improve is_config
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 57655ee0e..b102f4423 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -108,7 +108,12 @@ end -- the current config is belong to the given config values? function project._api_is_config(interp, name, ...) - return config.is_value(name, ...) + local value = config.get(name) + local namespace = interp:namespace() + if value == nil and namespace then + value = config.get(namespace .. "::" .. name) + end + return config._is_value(value, ...) end -- some configs are enabled? |
