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
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake