<div dir="ltr">Hello<div><br></div><div>I'm trying to cross-compile a Fortran program using mingw32-w64 on Linux. I need to link to NetCDF and during the cmake process the following file is generated:</div><div>CMakeFiles/output.dir/includes_Fortran.rsp<br>
</div><div><br></div><div>with the following content:</div><div>-I/home/kb/build/gotm/i686-w64-mingw32-gfortran -I/home/kb/GOTM/gotm-git/src/../<br></div><div><div>include -I/home/kb/GOTM/gotm-git/src/util -I/home/kb/build/gotm/i686-w64-mingw32</div>
<div>-gfortran/modules -I/home/kb/mingw32-w64/4.8/i686/include</div></div><div><br></div><div>This looks OK but when I do the compilation with VERBOSE=1 I get:</div><div><div>[ 90%] Building Fortran object CMakeFiles/output.dir/output/ncdfout.F90.o</div>
<div>/usr/bin/i686-w64-mingw32-gfortran -DFORTRAN95 -DNETCDF_FMT -DREAL_4B="real(4)" -D_FABM_ -static -ffree-line-length-none -O3 @CMakeFiles/output.dir/includes_Fortran.rsp -c /home/kb/GOTM/gotm-git/src/output/ncdfout.F90 -o CMakeFiles/output.dir/output/ncdfout.F90.o<br>
</div></div><div><br></div><div>i.e. the include_Fortran.rsp is listed on the command line but does not seem to be used:</div><div><br></div><div>Any ideas what is wrong?</div><div><br></div><div>When I do a straight Linux compile (gfortran or ifort) no includes_Fortran.rsp is generated.</div>
<div><br></div><div>Karsten</div></div>