summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-14 22:48:12 +0800
committerruki <[email protected]>2019-02-14 10:49:12 +0800
commitae1d10255b58e88ab9b687c333654cf4eb32e2d3 (patch)
tree516398dd23c792f294723b7fca091cb58baa3c45
parent27614f2e3c425116ddfb83cc4ccf471973983698 (diff)
format code
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index bedadb1d7..728277eed 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -131,10 +131,10 @@ end
-- add target compile options
function _add_target_compile_options(cmakelists, target)
- local cflags = target:get("cflags")
- local cxflags = target:get("cxflags")
- local cxxflags = target:get("cxxflags")
- local cuflags = target:get("cuflags")
+ local cflags = target:get("cflags")
+ local cxflags = target:get("cxflags")
+ local cxxflags = target:get("cxxflags")
+ local cuflags = target:get("cuflags")
if cflags or cxflags or cxxflags or cuflags then
cmakelists:print("target_compile_options(%s PRIVATE", target:name())
for _, flag in ipairs(cflags) do