jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
329 stars 81 forks source link

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

Open timofeymukha opened 1 year ago

timofeymukha commented 1 year ago

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 commented 1 month ago

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

jacobwilliams commented 1 month ago

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?