diff options
| author | ruki <[email protected]> | 2019-01-24 21:00:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-24 00:00:22 +0800 |
| commit | dd9e1bb88ec464edd6fa76a4ee63ad7a3a334314 (patch) | |
| tree | fe19e75cffe3d09f1bf33274412852aa8a84cd00 /xmake/modules/detect | |
| parent | b56c72c24a91c98cc11b83564b37bcea0c93cb79 (diff) | |
improve find_package
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/packages/find_mbedtls.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xmake/modules/detect/packages/find_mbedtls.lua b/xmake/modules/detect/packages/find_mbedtls.lua index 98679cbfe..bd15c2b86 100644 --- a/xmake/modules/detect/packages/find_mbedtls.lua +++ b/xmake/modules/detect/packages/find_mbedtls.lua @@ -23,7 +23,7 @@ -- -- imports -import("lib.detect.pkg_config") +import("package.manager.find_package") -- find mbedtls -- @@ -32,9 +32,6 @@ import("lib.detect.pkg_config") -- @return see the return value of find_package() -- function main(opt) - - -- find package from the current host platform - if opt.plat == os.host() and opt.arch == os.arch() then - return pkg_config.find("mbedtls", {links = {"mbedtls", "mbedcrypto", "mbedx509"}}) - end + opt.links = {"mbedtls", "mbedcrypto", "mbedx509"} + return opt.find_package("mbedtls", opt) end |
