[CMake] includes_Fortran.rsp not used

Karsten Bolding karsten at bolding-burchard.com
Wed Sep 3 04:12:21 EDT 2014


Hello

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:
CMakeFiles/output.dir/includes_Fortran.rsp

with the following content:
-I/home/kb/build/gotm/i686-w64-mingw32-gfortran
-I/home/kb/GOTM/gotm-git/src/../
include -I/home/kb/GOTM/gotm-git/src/util
-I/home/kb/build/gotm/i686-w64-mingw32
-gfortran/modules -I/home/kb/mingw32-w64/4.8/i686/include

This looks OK but when I do the compilation with VERBOSE=1 I get:
[ 90%] Building Fortran object CMakeFiles/output.dir/output/ncdfout.F90.o
/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

i.e. the include_Fortran.rsp is listed on the command line but does not
seem to be used:

Any ideas what is wrong?

When I do a straight Linux compile (gfortran or ifort) no
includes_Fortran.rsp is generated.

Karsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140903/b2997b7e/attachment.html>


More information about the CMake mailing list