diff options
| author | ruki <[email protected]> | 2020-09-02 00:56:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-02 00:56:12 +0800 |
| commit | 8d75f22785301bd97e0d141532c378b16b58f7c3 (patch) | |
| tree | a096c2de2f86b07d1c8e1e162dfae869d12cf39d | |
| parent | 810fcb261f61552eb72a17bec858a9bb9a9384f3 (diff) | |
improve tools/cmake
| -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 f35b489b4..8511c0998 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -127,7 +127,7 @@ function install(package, configs, opt) if os.isfile(projfile) then os.vrunv(msbuild.program, {projfile, "/property:configuration=" .. (package:debug() and "Debug" or "Release")}, {envs = runenvs}) os.trycp("install/lib", package:installdir()) -- perhaps only headers library - os.cp("install/include", package:installdir()) + os.trycp("install/include", package:installdir()) else os.cp("**.lib", package:installdir("lib")) os.cp("**.dll", package:installdir("lib")) @@ -147,7 +147,7 @@ function install(package, configs, opt) os.vrunv("make", {"install"}) end os.trycp("install/lib", package:installdir()) - os.cp("install/include", package:installdir()) + os.trycp("install/include", package:installdir()) end os.cd(oldir) end |
