Skip to content

Commit

Permalink
Merge pull request #14 from arnholm/bugfix_config_kind
Browse files Browse the repository at this point in the history
if kind is only defined for configs, promote to project
  • Loading branch information
Enhex authored Jul 29, 2021
2 parents 4fbac1a + 45f0793 commit 6b5c91a
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 6b5c91a

Please sign in to comment.