From: Martin Quinson Date: Fri, 23 Mar 2018 21:26:30 +0000 (+0100) Subject: properly guard the installation of smpi.mod to systems with a proper Fortran install X-Git-Tag: v3.20~648 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a51837d2ea27dd5114fc26aa679818f14796a029 properly guard the installation of smpi.mod to systems with a proper Fortran install --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 397c6bd7fb..3733e2bd18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -704,7 +704,7 @@ set(SMPIMAIN smpimain) configure_file(${CMAKE_HOME_DIRECTORY}/include/smpi/mpif.h.in ${CMAKE_BINARY_DIR}/include/smpi/mpif.h @ONLY) #configure mpif.f90 to build mpi.mod -if(enable_fortran) +if(SMPI_FORTRAN) set(MODULE_MPIF_IN "module mpi") set(MODULE_MPIF_OUT "end module mpi") configure_file(${CMAKE_HOME_DIRECTORY}/include/smpi/mpif.h.in ${CMAKE_BINARY_DIR}/src/smpi/mpif.f90.generated @ONLY)