summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-09 17:38:26 +0800
committerruki <[email protected]>2015-07-09 17:38:26 +0800
commit6381c698b6f253b2ae19330d0363213dd904fe26 (patch)
treecfa1c2b16e10f84e2049aede31992b5e985105f2 /xmake/scripts/base/project.lua
parent4770b716f103a57e174cdb6e4151f01a3297714b (diff)
fix probe configure automatically
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)