diff options
author | Willem Deconinck <willem.deconinck@ecmwf.int> | 2019-07-03 08:11:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-08 15:28:27 (GMT) |
commit | b0bcd4d7d2cb9defb790514375b78efbf60cc2e8 (patch) | |
tree | 643b871be9fdbde5519b860fb8e3a84f6f0d3417 /Modules/Compiler/Cray-Fortran.cmake | |
parent | 33de4d27eb5686bc5b3f9eb96cadf3e4a30084dc (diff) | |
download | CMake-b0bcd4d7d2cb9defb790514375b78efbf60cc2e8.zip CMake-b0bcd4d7d2cb9defb790514375b78efbf60cc2e8.tar.gz CMake-b0bcd4d7d2cb9defb790514375b78efbf60cc2e8.tar.bz2 |
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
Diffstat (limited to 'Modules/Compiler/Cray-Fortran.cmake')
-rw-r--r-- | Modules/Compiler/Cray-Fortran.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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 .) |