summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/pkg_config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-30 00:33:55 +0800
committerruki <[email protected]>2019-01-29 21:23:31 +0800
commit41692173a4b81050d0e521036d6d88b674db98ef (patch)
tree55b42b4c422e1d9ae7b0e83df06a399a72ca2f4d /xmake/modules/lib/detect/pkg_config.lua
parent0bfe3e42e041fb23bf15669c4c88931a4bc65c48 (diff)
fix find_package bug
Diffstat (limited to 'xmake/modules/lib/detect/pkg_config.lua')
-rw-r--r--xmake/modules/lib/detect/pkg_config.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/pkg_config.lua b/xmake/modules/lib/detect/pkg_config.lua
index 79d772b84..4f1eaedac 100644
--- a/xmake/modules/lib/detect/pkg_config.lua
+++ b/xmake/modules/lib/detect/pkg_config.lua
@@ -63,6 +63,7 @@ function info(name, opt)
end
-- get libs and cflags
+ local result = nil
local flags = try { function () return os.iorunv(pkg_config, {"--libs", "--cflags", name}) end }
if flags then