diff options
| author | ruki <[email protected]> | 2020-04-21 22:42:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-21 10:12:13 +0800 |
| commit | a45fd8ca3b63a8fe9c21fdc9a87e71c01054422e (patch) | |
| tree | b7cc3bf3ce14044c4f798e428b67cf61f80f1dde | |
| parent | 2f67e772cea01c426caeafb5edf1f73c375de9e5 (diff) | |
improve cmake tools
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 4 |
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) |
