summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager/conan/install_package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-28 22:42:04 +0800
committerruki <[email protected]>2019-01-28 10:12:26 +0800
commit93c79d79a4ba9febfd231a28632f7a6b8b46e84b (patch)
tree5965546a0910b95e8b2d042b81521b37a59628ff /xmake/modules/package/manager/conan/install_package.lua
parentef61b0b1808551f90ab7b6d09d91c97bcfeb24d0 (diff)
fix load system package
Diffstat (limited to 'xmake/modules/package/manager/conan/install_package.lua')
-rw-r--r--xmake/modules/package/manager/conan/install_package.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/conan/install_package.lua b/xmake/modules/package/manager/conan/install_package.lua
index 114dd6202..5e609e7d0 100644
--- a/xmake/modules/package/manager/conan/install_package.lua
+++ b/xmake/modules/package/manager/conan/install_package.lua
@@ -76,6 +76,12 @@ function main(name, opt)
-- get build directory
local buildir = _get_build_directory(name)
+ -- clean the build directory
+ os.tryrm(buildir)
+ if not os.isdir(buildir) then
+ os.mkdir(buildir)
+ end
+
-- enter build directory
local oldir = os.cd(buildir)