Skip to content

Commit

Permalink
Handle project without source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Apr 14, 2022
1 parent c1c8ba5 commit 2d6f038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake_project.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function m.files(prj)
local tr = project.getsourcetree(prj)
tree.traverse(tr, {
onleaf = function(node, depth)

_p(depth, '"%s"', path.getrelative(prj.workspace.location, node.abspath))

-- add generated files
Expand Down Expand Up @@ -62,7 +63,7 @@ function m.files(prj)
end
end
end
}, true)
})
end

--
Expand Down

0 comments on commit 2d6f038

Please sign in to comment.