summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-30 00:42:32 +0800
committerruki <[email protected]>2019-01-29 22:15:15 +0800
commitbdda5b943ca44eb8162e117420c884f59b8d4162 (patch)
treece59e9757d5bf6ae20a88965507948444b974a43
parent41692173a4b81050d0e521036d6d88b674db98ef (diff)
install debug package for conan
-rw-r--r--xmake/modules/package/manager/conan/install_package.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/conan/install_package.lua b/xmake/modules/package/manager/conan/install_package.lua
index 62ab744ef..f3b56b61e 100644
--- a/xmake/modules/package/manager/conan/install_package.lua
+++ b/xmake/modules/package/manager/conan/install_package.lua
@@ -88,7 +88,7 @@ function main(name, opt)
-- generate conanfile.txt
_conan_generate_conanfile(name, opt)
- -- TODO opt.mode, --remote=, --compiler=, ..
+ -- TODO --remote=, --compiler=, ..
-- install package
local argv = {"install", "."}
if opt.build then
@@ -98,6 +98,10 @@ function main(name, opt)
table.insert(argv, "--build=" .. opt.build)
end
end
+ if opt.mode == "debug" then
+ table.insert(argv, "-s")
+ table.insert(argv, "build_type=Debug")
+ end
os.vrunv(conan.program, argv)
-- leave build directory