summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/NAG-Fortran.cmake
diff options
context:
space:
mode:
authorNeil Carlson <neil.n.carlson@gmail.com>2020-01-15 19:04:32 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-15 19:12:22 (GMT)
commitf7f60ddcf90a1a4c41b1a0f931726ee0527949e3 (patch)
tree2e0b4849c92ab1932a56d3c9067f85231679bf3a /Modules/Compiler/NAG-Fortran.cmake
parent512ab500f06d6c645985cc8014c5e6291b9a059f (diff)
downloadCMake-f7f60ddcf90a1a4c41b1a0f931726ee0527949e3.zip
CMake-f7f60ddcf90a1a4c41b1a0f931726ee0527949e3.tar.gz
CMake-f7f60ddcf90a1a4c41b1a0f931726ee0527949e3.tar.bz2
Fortran: Add support for NAG Fortran submodules
They use a `.sub` extension. Fixes: #20220
Diffstat (limited to 'Modules/Compiler/NAG-Fortran.cmake')
-rw-r--r--Modules/Compiler/NAG-Fortran.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/NAG-Fortran.cmake b/Modules/Compiler/NAG-Fortran.cmake
index 9973feb..edc56fd 100644
--- a/Modules/Compiler/NAG-Fortran.cmake
+++ b/Modules/Compiler/NAG-Fortran.cmake
@@ -28,6 +28,8 @@ if(NOT CMAKE_Fortran_COMPILER_WORKS AND NOT CMAKE_Fortran_COMPILER_FORCED)
endif()
endif()
+set(CMAKE_Fortran_SUBMODULE_SEP ".")
+set(CMAKE_Fortran_SUBMODULE_EXT ".sub")
set(CMAKE_Fortran_MODDIR_FLAG "-mdir ")
set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")