Skip to content

Commit

Permalink
if kind is only defined for configs, promote to project
Browse files Browse the repository at this point in the history
  • Loading branch information
arnholm authored and JoelLinn committed Sep 22, 2022
1 parent 5b7b803 commit 91c646f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake_project.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ end
--
function m.generate(prj)
p.utf8()

-- if kind is only defined for configs, promote to project
if prj.kind == nil then
for cfg in project.eachconfig(prj) do
prj.kind = cfg.kind
end
end

if prj.kind == 'Utility' then
return
Expand Down

0 comments on commit 91c646f

Please sign in to comment.