summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-02 00:56:12 +0800
committerruki <[email protected]>2020-09-02 00:56:12 +0800
commit8d75f22785301bd97e0d141532c378b16b58f7c3 (patch)
treea096c2de2f86b07d1c8e1e162dfae869d12cf39d /xmake/modules/package/tools/cmake.lua
parent810fcb261f61552eb72a17bec858a9bb9a9384f3 (diff)
improve tools/cmake
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-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 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