summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-21 22:42:02 +0800
committerruki <[email protected]>2020-04-21 10:12:13 +0800
commita45fd8ca3b63a8fe9c21fdc9a87e71c01054422e (patch)
treeb7cc3bf3ce14044c4f798e428b67cf61f80f1dde
parent2f67e772cea01c426caeafb5edf1f73c375de9e5 (diff)
improve cmake tools
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files 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)