diff options
| author | A2va <[email protected]> | 2023-09-30 18:16:31 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-09-30 18:18:44 +0200 |
| commit | dbfde8ed4da11fd0221a88bfa267e9cf05457345 (patch) | |
| tree | 4003de077cd6cd503bb2ffb9b03d0481fb53c4ab /xmake/plugins/project/cmake/cmakelists.lua | |
| parent | 434993362b6c4a6a2f20bd634b71eb4f27221253 (diff) | |
Remove unnecessary underscore
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index e0b12ae1a..8a7eabb78 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -381,7 +381,7 @@ end function _add_target_sources(cmakelists, target, outputdir) local has_cuda = false cmakelists:print("target_sources(%s PRIVATE", target:name()) - local sourcebatches, _ = target:sourcebatches() + local sourcebatches = target:sourcebatches() for _, sourcebatch in table.orderpairs(sourcebatches) do if _sourcebatch_is_built(sourcebatch) then for _, sourcefile in ipairs(sourcebatch.sourcefiles) do @@ -613,7 +613,7 @@ function _add_target_compile_options(cmakelists, target, outputdir) end -- add cflags/cxxflags for the specific source files - local sourcebatches, _ = target:sourcebatches() + local sourcebatches = target:sourcebatches() for _, sourcebatch in table.orderpairs(sourcebatches) do if _sourcebatch_is_built(sourcebatch) then for _, sourcefile in ipairs(sourcebatch.sourcefiles) do @@ -837,7 +837,7 @@ function _add_target_link_libraries(cmakelists, target, outputdir) -- add other object files, maybe from custom rules local objectfiles_set = hashset.new() - local sourcebatches, _ = target:sourcebatches() + local sourcebatches = target:sourcebatches() for _, sourcebatch in table.orderpairs(sourcebatches) do if _sourcebatch_is_built(sourcebatch) then for _, objectfile in ipairs(sourcebatch.objectfiles) do |
