diff options
| -rw-r--r-- | xmake/actions/require/install.lua | 4 | ||||
| -rw-r--r-- | xmake/rules/qt/load.lua | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index 888f64978..c39569713 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -75,7 +75,9 @@ end -- register the base info of required package function _register_required_package_base(instance, requireinfo) - requireinfo:set("__installdir", instance:installdir()) + if not instance:isSys() and not instance:is3rd() then + requireinfo:set("__installdir", instance:installdir()) + end end -- register the required local package diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index b7fc91408..5962fcd89 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -102,9 +102,11 @@ function main(target, opt) end -- add -fPIC - target:add("cxflags", "-fPIC") - target:add("mxflags", "-fPIC") - target:add("asflags", "-fPIC") + if not target:is_plat("windows", "mingw") then + target:add("cxflags", "-fPIC") + target:add("mxflags", "-fPIC") + target:add("asflags", "-fPIC") + end -- need c++11 at least local languages = target:get("languages") |
