Skip to content

Commit

Permalink
cps: correctly add interface type
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Jun 14, 2024
1 parent c01cc46 commit 6f5340b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mesonbuild/modules/cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ def make_component(comp: Component) -> T.Dict:
cdata = {'type': 'archive'}
elif isinstance(comp.target, build.SharedLibrary):
cdata = {'type': 'dylib'}
elif comp.target is not None:
elif comp.target is None:
cdata = {'type': 'interface'}
else:
raise NotImplementedError(f'Have not implemented support for "{comp.target.typename}" yet')

if not isinstance(comp.target, build.Executable):
Expand Down

0 comments on commit 6f5340b

Please sign in to comment.