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.
This commit is contained in:
Ross Smyth
2025-03-10 16:00:38 -04:00
parent cbcd08fa7d
commit 4c8dab0edd
+3 -3
View File
@@ -64,10 +64,10 @@ unity_dep = declare_dependency(
if not meson.is_subproject()
pkg = import('pkgconfig')
pkg.generate(
name: meson.project_name(),
unity_lib,
version: meson.project_version(),
libraries: [ unity_lib ],
description: 'C Unit testing framework.'
subdirs: 'unity',
extra_cflags: unity_args,
)
endif