Description
Is your feature request related to a problem? Please describe.
While it is possible to pass --include_dirs
as additional search directories for pre-processor includes (#include 'file'
), it seems that there is no such possibility to pass additional search directories for Fortran include statements (include 'file'
without the #
). My understanding is that fortls currently only searches for the include files relative to the file that includes them.
Describe the solution you'd like
It should be possible to pass additional search directories for Fortran include statements. I would suggest to just use the same --include_dirs
that are used for pre-processor includes. To the best of my knowledge, this is what most (all?) compilers do: just use the paths passed via -I
for both #include
and include
.