I have a weather forecast model I am developing. It is based on MPAS model. I am using a new aproach to compile the code, with fpm.
I have a problem with multiple includes. I use the command bellow, but the system can not see the second include (ezxml):
> /opt/bin/fpm build --compiler 'mpif90' --flag -I/opt/gnu/include --flag -I/home/lufla/MONAN/ATMOSPHERE/src/ezxml (base)
+ which mpiexec
/opt/gnu/bin/mpiexec
libmassv.f90 done.
module_bep_bem_helper.f90 done.
ESMF_BaseMod.f90 done.
ESMF_FractionMod.f90 done.
wrf_message.f90 done.
wrf_error_fatal.f90 done.
read_geogrid.c done.
ezxml.c done.
mpas_c_interfacing.f90 done.
regex_matching.c done.
random_id.c done.
mpas_kind_types.f90 done.
pool_hash.c done.
xml_stream_parser.c failed.
[ 25%] Compiling...
././src/framework/xml_stream_parser.c:16:10: fatal error: ezxml.h: Arquivo ou diretório inexistente
16 | #include "ezxml.h"
| ^~~~~~~~~
compilation terminated.
<ERROR> Compilation failed for object " src_framework_xml_stream_parser.c.o "
<ERROR> stopping due to failed compilation
STOP 1
All the files are available in directory. How I inform to fpm another include directory? Or, how include in command more than one directory (-I)?