Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix case when no fortran compiler is found
authordegomme <augustin.degomme@unibas.ch>
Wed, 19 Oct 2016 10:14:16 +0000 (12:14 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Wed, 19 Oct 2016 10:14:16 +0000 (12:14 +0200)
CMakeLists.txt

index 8928955..daeb9d8 100644 (file)
@@ -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()
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#