fpm
fpm copied to clipboard
add predefined macro PROJECT_ROOT
Inspired by #766
This pull request adds PROJECT_ROOT as a predefined macro. If preprocess is activated, this macro definition is passed to the source code.
And it is possible to add more predefined macros.
P.S. I find it is quite complex using macro in Fortran source code. Anyway, it is the problem of preprocessor itself.