summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
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