Skip to content
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

rock_find_pkgconfig does not restrict the search to whichever path is set within the pkg-config file #60

Open
doudou opened this issue May 20, 2020 · 0 comments

Comments

@doudou
Copy link
Member

doudou commented May 20, 2020

The find_library call in rock_find_pkgconfig is hinted with the paths found within the Cflags. This means it actually uses the paths that are provided by environment variables (or within the CMake code itself).

This works (albeit in a rather fragile way) when the paths are non-standard. It does not when the library that is being looked for lies in the system path but another version of it exists in the library search path.

Need to restrict the search path exactly to the paths that pkg-config lists in Cflags, or to the system paths if pkg-config returns no search paths.

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

No branches or pull requests

1 participant