summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
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 680d29a9b..f41bf0052 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -71,7 +71,7 @@ end
-- get msvc run environments
function _get_msvc_runenvs(package)
- return _get_msvc(package):runenvs()
+ return os.joinenvs(_get_msvc(package):runenvs())
end
-- get cflags from package deps
@@ -491,7 +491,7 @@ function buildenvs(package, opt)
local envs = {}
local cmake_generator = opt.cmake_generator
if cmake_generator and cmake_generator == "Ninja" and package:is_plat("windows") then
- table.join2(envs, _get_msvc_runenvs(package))
+ envs = _get_msvc_runenvs(package)
end
-- add environments for cmake/find_packages