diff options
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 8 |
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 |
