Skip to content

Conversation

rsmyth-ecmi
Copy link
Contributor

The pkg-config file does not include the subdir in its build flags, so files will fail to find the Unity headers. Basically the previous file looked like this:

prefix=/usr/lib/unity-test-2.6.1
includedir=${prefix}/include
libdir=${prefix}/lib

Name: unity
Description: C Unit testing framework.
Version: 2.6.1
Libs: -L${libdir} -lunity
Cflags: -I${includedir}

The new one looks like this

prefix=/usr/lib/unity-test-2.6.1
includedir=${prefix}/include
libdir=${prefix}/lib

Name: unity
Description: C Unit testing framework.
Version: 2.6.1
Libs: -L${libdir} -lunity
Cflags: -I${includedir}/unity

Notice the Cflags variable.

The pkg-config file does not include the subdir
in its build flags, so files will fail to find the
Unity headers.
@rsmyth-ecmi
Copy link
Contributor Author

@mvandervoord Would it be possible for this to be looked at? .pc file generation is currently busted without it.

@mvandervoord mvandervoord merged commit 04f3d38 into ThrowTheSwitch:master Jul 10, 2025
4 checks passed
@rsmyth-ecmi rsmyth-ecmi deleted the MesonFix branch July 10, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants