From: degomme Date: Wed, 19 Oct 2016 10:14:16 +0000 (+0200) Subject: fix case when no fortran compiler is found X-Git-Tag: v3_14~301 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/553822fb3e37ffb31efd16af1a4d841a9dbbfb2d fix case when no fortran compiler is found --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 892895526b..daeb9d899e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,10 +70,9 @@ if ((NOT DEFINED enable_smpi) OR enable_smpi) # configuration where it was saved as smpiff unset(CMAKE_Fortran_COMPILER) + SET(SMPI_FORTRAN 0) if(enable_fortran) enable_language(Fortran OPTIONAL) - else() - SET(SMPI_FORTRAN 0) endif() if(CMAKE_Fortran_COMPILER) @@ -82,6 +81,7 @@ if ((NOT DEFINED enable_smpi) OR enable_smpi) set(CMAKE_Fortran_COMPILER smpiff) set(SMPI_FORTRAN 1) endif(CMAKE_Fortran_COMPILER) + endif() #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#