json-fortran
json-fortran copied to clipboard
libdir and includedir empty in json-fortran.pc
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?
I don't use the CMake project, so don't know how to fix this. Anybody have any suggestions?
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?