summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-23 18:16:05 +0800
committerGitHub <[email protected]>2021-04-23 18:16:05 +0800
commite4cd38d543529552dc405a8fd5e71dd58df2f140 (patch)
treea00ed42c4527f5fbb331c76ef83ba7d1528a92ab /xmake/modules
parentef17fec2bc80c6ec4ad537e74748762d18e92606 (diff)
parent51bc592d022d1b812bae3f12fb9365f1842c30c3 (diff)
Merge pull request #1355 from xq114/dev
improve package.tools.cmake
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/tools/cmake.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 92d6d7e72..a15812300 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -117,7 +117,7 @@ function _get_cflags(package, opt)
end
table.join2(result, _get_cflags_from_packagedeps(package, opt))
if #result > 0 then
- return table.concat(result, ' ')
+ return os.args(result)
end
end
@@ -142,7 +142,7 @@ function _get_cxxflags(package, opt)
end
table.join2(result, _get_cflags_from_packagedeps(package, opt))
if #result > 0 then
- return table.concat(result, ' ')
+ return os.args(result)
end
end
@@ -161,7 +161,7 @@ function _get_asflags(package, opt)
table.join2(result, opt.asflags)
end
if #result > 0 then
- return table.concat(result, ' ')
+ return os.args(result)
end
end
@@ -180,7 +180,7 @@ function _get_ldflags(package, opt)
table.join2(result, opt.ldflags)
end
if #result > 0 then
- return table.concat(result, ' ')
+ return os.args(result)
end
end
@@ -199,7 +199,7 @@ function _get_shflags(package, opt)
table.join2(result, opt.shflags)
end
if #result > 0 then
- return table.concat(result, ' ')
+ return os.args(result)
end
end