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 committed Jul 29, 2021
1 parent 4fbac1a commit 45f0793
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 @@ -45,6 +45,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 45f0793

Please sign in to comment.