summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-10-28 11:16:28 +0800
committerruki <[email protected]>2015-10-28 11:16:28 +0800
commit61715f00d43dbb91514425af5d637fc5e7219a7d (patch)
treea7f3c25161e45d8821686f08b3453fc7a80ee239 /xmake/scripts/base/project.lua
parentbec7630156f36839322c5c90fbe8e050350a6eac (diff)
fix set_option_enable bug
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 0a5f41317..653d72ddb 100644
--- a/xmake/scripts/base/project.lua
+++ b/xmake/scripts/base/project.lua
@@ -1316,8 +1316,8 @@ function project.menu()
-- the default value
local default = "auto"
- if opt.enable and utils.unwrap(opt.enable) then
- default = true
+ if opt.enable ~= nil then
+ default = utils.unwrap(opt.enable)
end
-- is first?