pkg-config also needs to be supported.
This needs typically:
@FMODDIR@to be set in configure/cmake;- The variable
fmoddir=@FMODDIR@then set in the first stanza of the pc file - The pc file to be in a per-Fortran file:
$LIBDIR/fortran/$variant/pkgconfig