summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/lib/detect/pkgconfig.lua18
1 files changed, 0 insertions, 18 deletions
diff --git a/xmake/modules/lib/detect/pkgconfig.lua b/xmake/modules/lib/detect/pkgconfig.lua
index f47cd70be..9cd07a1e7 100644
--- a/xmake/modules/lib/detect/pkgconfig.lua
+++ b/xmake/modules/lib/detect/pkgconfig.lua
@@ -171,24 +171,6 @@ function libinfo(name, opt)
end
end
- -- get includedirs
- if not result or not result.includedirs then
- local varinfo = variables(name, "includedir", opt)
- if varinfo and varinfo.includedir then
- result = result or {}
- result.includedirs = varinfo.includedir
- end
- end
-
- -- get linkdirs
- if not result or not result.linkdirs then
- local varinfo = variables(name, "libdir", opt)
- if varinfo and varinfo.libdir then
- result = result or {}
- result.linkdirs = varinfo.libdir
- end
- end
-
-- get version
local version = try { function() return os.iorunv(pkgconfig, {"--modversion", name}, {envs = envs}) end }
if version then