From: Martin Quinson Date: Fri, 11 Jan 2019 23:30:17 +0000 (+0100) Subject: try to compile mpi.mod even if the config was run previously X-Git-Tag: v3_22~581 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8027c7e2096e3eb887cc011b1937d10ae568310a try to compile mpi.mod even if the config was run previously 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... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c399fbbf0e..d930151482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,8 @@ if ((NOT DEFINED enable_smpi) OR enable_smpi) 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()