Skip to content

Commit 4c8dab0

Browse files
committed
Fix meson pkg-config generation
The pkg-config file does not include the subdir in its build flags, so files will fail to find the Unity headers.
1 parent cbcd08f commit 4c8dab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ unity_dep = declare_dependency(
6464
if not meson.is_subproject()
6565
pkg = import('pkgconfig')
6666
pkg.generate(
67-
name: meson.project_name(),
67+
unity_lib,
6868
version: meson.project_version(),
69-
libraries: [ unity_lib ],
70-
description: 'C Unit testing framework.'
69+
subdirs: 'unity',
70+
extra_cflags: unity_args,
7171
)
7272
endif
7373

0 commit comments

Comments
 (0)