1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

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

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