SET(MMALLOC_WANT_OVERRIDE_LEGACY 0)
endif()
-# must come after having set HAVE_MC (FindGFortran uses it)
if(enable_smpi)
include(FindF2c)
+ # FindGFortran must come after FindF2C, and after having set HAVE_MC
include(FindGFortran)
SET(HAVE_SMPI 1)
endif()
set(SMPI_F90 0)
if(GFORTRAN_EXE)
- if(HAVE_MC)
+ if(NOT SMPI_F2C)
+ message("-- Fortran 90 support for smpi also needs f2c.")
+ elseif(HAVE_MC)
message("-- Fortran 90 support for smpi is currently not compatible with model checking.")
else()
set(SMPI_F90 1)