summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/meson.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-26 22:50:13 +0800
committerruki <[email protected]>2021-05-26 22:50:13 +0800
commitae433453a4a44e129af69999e7970e7d50b73e5e (patch)
tree077291f62ea2ac702b0c56f384574bdfa6357edf /xmake/modules/package/tools/meson.lua
parent42540a66479af57e7be0829dbf74d43a7f9acfab (diff)
add libdir to meson
Diffstat (limited to 'xmake/modules/package/tools/meson.lua')
-rw-r--r--xmake/modules/package/tools/meson.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 1a72eb913..a6bdec48a 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -38,8 +38,9 @@ end
function _get_configs(package, configs, opt)
-- add prefix
- local configs = configs or {}
+ configs = configs or {}
table.insert(configs, "--prefix=" .. package:installdir())
+ table.insert(configs, "--libdir=lib")
-- set build type
table.insert(configs, "--buildtype=" .. (package:debug() and "debug" or "release"))