From b0bcd4d7d2cb9defb790514375b78efbf60cc2e8 Mon Sep 17 00:00:00 2001 From: Willem Deconinck <willem.deconinck@ecmwf.int> Date: Wed, 3 Jul 2019 08:11:44 +0000 Subject: Fortran: Add support for submodules on Cray Define `CMAKE_Fortran_SUBMODULE_{SEP,EXT}` for the Cray Fortran compiler. Use an empty separator to tell CMake that this compiler does not use the enclosing module name as a prefix on submodule files. Issue: #18925 --- Modules/Compiler/Cray-Fortran.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Compiler/Cray-Fortran.cmake b/Modules/Compiler/Cray-Fortran.cmake index dbf28e3..ccb7c2e 100644 --- a/Modules/Compiler/Cray-Fortran.cmake +++ b/Modules/Compiler/Cray-Fortran.cmake @@ -4,6 +4,8 @@ include(Compiler/Cray) __compiler_cray(Fortran) +set(CMAKE_Fortran_SUBMODULE_SEP "") +set(CMAKE_Fortran_SUBMODULE_EXT ".mod") set(CMAKE_Fortran_MODOUT_FLAG -em) set(CMAKE_Fortran_MODDIR_FLAG -J) set(CMAKE_Fortran_MODDIR_DEFAULT .) -- cgit v0.12