summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
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/detect
parentdae284b933cea7f3717a5a0dee3f18304b3fb1e0 (diff)
improve find_package from vcpkg
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/packages/find_pcre2.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/detect/packages/find_pcre2.lua b/xmake/modules/detect/packages/find_pcre2.lua
index c65022c9c..bb3083193 100644
--- a/xmake/modules/detect/packages/find_pcre2.lua
+++ b/xmake/modules/detect/packages/find_pcre2.lua
@@ -54,6 +54,7 @@ function main(opt)
end
for _, width in ipairs({"8", "16", "32"}) do
if links["pcre2-" .. width] then
+ result.links = {"pcre2-" .. width}
result.defines = {"PCRE2_CODE_UNIT_WIDTH=" .. width}
break
end