diff options
| author | ruki <[email protected]> | 2019-01-24 00:52:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-23 23:14:25 +0800 |
| commit | b56c72c24a91c98cc11b83564b37bcea0c93cb79 (patch) | |
| tree | 236685da94d7e5ca5dc3c920a25d40da5b3ec3db /xmake/modules/lib/detect/find_package.lua | |
| parent | dae284b933cea7f3717a5a0dee3f18304b3fb1e0 (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.lua | 1 |
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 |
