Skip to content

Fix meson pkg-config generation #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsmyth-ecmi
Copy link

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.
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.

1 participant