summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/meson.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 0ee1839b6..f419086d5 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -56,7 +56,7 @@ function _get_configs(package, configs, opt)
table.insert(configs, "--libdir=lib")
-- set build type
- table.insert(configs, "--buildtype=" .. (package:debug() and "debug" or "release"))
+ table.insert(configs, "-Dbuildtype=" .. (package:debug() and "debug" or "release"))
-- add -fpic
if package:is_plat("linux") and package:config("pic") then