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

libdir and includedir empty in json-fortran.pc #538

Open
timofeymukha opened this issue Jun 8, 2023 · 2 comments
Open

libdir and includedir empty in json-fortran.pc #538

timofeymukha opened this issue Jun 8, 2023 · 2 comments

Comments

@timofeymukha
Copy link

After installing with cmake, my json-fortran.pc looks like this

libdir=
includedir=

Name: json-fortran
Description:
URL: https://github.com/jacobwilliams/json-fortran
Version: 8.3.0
Libs: -L${libdir} -ljsonfortran
Cflags: -I${includedir}

So the libdir and includedir don't get populated. I have to manually add the path to jsonfortran-gnu-8.3.0/lib/ there to get things to work correctly when using the libraries as part of my build.

Am I missing some configuration parameter maybe?

@jacobwilliams
Copy link
Owner

I don't use the CMake project, so don't know how to fix this. Anybody have any suggestions?

@jacobwilliams
Copy link
Owner

The json-fortran.pc.cmake.in file has:

libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

So maybe these aren't working for some reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants