From a45fd8ca3b63a8fe9c21fdc9a87e71c01054422e Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 21 Apr 2020 22:42:02 +0800 Subject: improve cmake tools --- xmake/modules/package/tools/cmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 701e8c928..bdb43056d 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -122,7 +122,7 @@ function install(package, configs, opt) local projfile = os.isfile("INSTALL.vcxproj") and "INSTALL.vcxproj" or "INSTALL.vcproj" if os.isfile(projfile) then os.vrun("msbuild \"%s\" /property:configuration=%s", projfile, package:debug() and "Debug" or "Release") - os.cp("install/lib", package:installdir()) + os.trycp("install/lib", package:installdir()) -- perhaps only headers library os.cp("install/include", package:installdir()) else os.cp("**.lib", package:installdir("lib")) @@ -137,7 +137,7 @@ function install(package, configs, opt) end os.vrunv("make", argv) os.vrunv("make", {"install"}) - os.cp("install/lib", package:installdir()) + os.trycp("install/lib", package:installdir()) os.cp("install/include", package:installdir()) end os.cd(oldir) -- cgit v1.3.1