summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/find_package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-24 00:52:24 +0800
committerruki <[email protected]>2019-01-23 23:14:25 +0800
commitb56c72c24a91c98cc11b83564b37bcea0c93cb79 (patch)
tree236685da94d7e5ca5dc3c920a25d40da5b3ec3db /xmake/modules/lib/detect/find_package.lua
parentdae284b933cea7f3717a5a0dee3f18304b3fb1e0 (diff)
improve find_package from vcpkg
Diffstat (limited to 'xmake/modules/lib/detect/find_package.lua')
-rw-r--r--xmake/modules/lib/detect/find_package.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/find_package.lua b/xmake/modules/lib/detect/find_package.lua
index 6c069dd67..63745c48d 100644
--- a/xmake/modules/lib/detect/find_package.lua
+++ b/xmake/modules/lib/detect/find_package.lua
@@ -55,6 +55,7 @@ function main(name, opt)
opt = table.copy(opt)
opt.plat = opt.plat or config.get("plat") or os.host()
opt.arch = opt.arch or config.get("arch") or os.arch()
+ opt.mode = opt.mode or config.mode() or "release"
-- init cache key
local key = "find_package_" .. opt.plat .. "_" .. opt.arch