summaryrefslogtreecommitdiff
path: root/xmake/modules/target/action/install/pkgconfig_importfiles.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-06 21:41:57 +0800
committerruki <[email protected]>2021-11-06 21:41:57 +0800
commit1e4cbd0ad277904bf86366dfba44c965fc640f73 (patch)
tree48e6812fe8a9d2c400b6be480f81f0be2640db57 /xmake/modules/target/action/install/pkgconfig_importfiles.lua
parent736dc4db6368fa4dd1770e768c5577bc8d55255d (diff)
add pkgconf
Diffstat (limited to 'xmake/modules/target/action/install/pkgconfig_importfiles.lua')
-rw-r--r--xmake/modules/target/action/install/pkgconfig_importfiles.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/target/action/install/pkgconfig_importfiles.lua b/xmake/modules/target/action/install/pkgconfig_importfiles.lua
index 820d7ef54..6954a1bb5 100644
--- a/xmake/modules/target/action/install/pkgconfig_importfiles.lua
+++ b/xmake/modules/target/action/install/pkgconfig_importfiles.lua
@@ -24,10 +24,8 @@ function main(target, opt)
-- check
opt = opt or {}
assert(target:is_library(), 'pkgconfig_importfiles: only support for library target(%s)!', target:name())
-
- -- only for unix platform
local installdir = target:installdir()
- if target:is_plat("windows") or not installdir then
+ if not installdir then
return
end