Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to compile mpi.mod even if the config was run previously
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 11 Jan 2019 23:30:17 +0000 (00:30 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 12 Jan 2019 14:21:04 +0000 (15:21 +0100)
If I understand correctly, this target was previously built in the
first run, right after the cmake run. Now that tests are separated, I
need to save whether or not this target should be built by caching
this variable.

But I'm not sure at all...

CMakeLists.txt

index c399fbb..d930151 100644 (file)
@@ -81,7 +81,8 @@ if ((NOT DEFINED enable_smpi) OR enable_smpi)
       set(SMPI_FLANG 1)
     endif()
 
       set(SMPI_FLANG 1)
     endif()
 
-    set(SMPI_FORTRAN 1)
+    set(SMPI_FORTRAN 1 CACHE BOOL "Whether SMPI Fortran code can be compiled")
+    mark_as_advanced(SMPI_FORTRAN)
   endif(CMAKE_Fortran_COMPILER)
 
 endif()
   endif(CMAKE_Fortran_COMPILER)
 
 endif()