summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base/project.lua')
-rw-r--r--xmake/scripts/base/project.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua
index 4d1976570..5df41cfe5 100644
--- a/xmake/scripts/base/project.lua
+++ b/xmake/scripts/base/project.lua
@@ -888,8 +888,8 @@ function project._make_options(configs)
-- make all options
for k, v in pairs(configs._OPTIONS) do
- -- this option has not been enabled?
- if nil == config.get(k) then
+ -- this option need be probed automatically?
+ if config.auto(k) then
-- make option
local o = project._make_option(k, v, cfile, cxxfile, objectfile, targetfile)