But then you need a Makefile destroying the very idea that fpm is enough.
Look, with a Makefile you can even rebuild fpm.toml with all the linking flags with the correct values without resorting to inject shell scripts like I did before.
So, I’m looking for a solution that doesn’t involve setting fpm related shell variables specific to a single project.
I know that for netcdf and other particular libraries fpm can use pkg-config. Can that work for other libraries? And if yes, how?