summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeAddFortranSubdirectory/config_mingw.cmake.in
blob: 97f67693afc7e27954275e3d797c9ca1f51ee2e6 (plain)
1
2
3
4
5
6
7
8
9
set(ENV{PATH} "@MINGW_PATH@\;$ENV{PATH}")
set(CMAKE_COMMAND_LINE "@ARGS_CMAKE_COMMAND_LINE@")
execute_process(
  COMMAND "@CMAKE_COMMAND@" "-GMinGW Makefiles"
  -DCMAKE_Fortran_COMPILER:PATH=@MINGW_GFORTRAN@
  -DBUILD_SHARED_LIBS=ON
  -DCMAKE_GNUtoMS=ON
  ${CMAKE_COMMAND_LINE}
  "@source_dir@")