From 8027c7e2096e3eb887cc011b1937d10ae568310a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 12 Jan 2019 00:30:17 +0100 Subject: [PATCH] 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... --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.20.1