diff options
author | Brad King <brad.king@kitware.com> | 2021-02-23 13:05:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-23 13:06:30 (GMT) |
commit | e1ea0c9540e1ee1792833f7b02ad3afc1385c290 (patch) | |
tree | 8d92c10a73db389bbe0120da4b1030daa1b72857 | |
parent | 049c257e1d6f5a1d0deef166f1a8fa73da5680c3 (diff) | |
parent | ec030877a2df35bea000b5037724c763fe690350 (diff) | |
download | CMake-e1ea0c9540e1ee1792833f7b02ad3afc1385c290.zip CMake-e1ea0c9540e1ee1792833f7b02ad3afc1385c290.tar.gz CMake-e1ea0c9540e1ee1792833f7b02ad3afc1385c290.tar.bz2 |
Merge topic 'nag-fortran-include-moddir' into release-3.20
ec030877a2 NAG: Fix using Fortran modules from their output directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5842
-rw-r--r-- | Modules/Compiler/NAG-Fortran.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NAG-Fortran.cmake b/Modules/Compiler/NAG-Fortran.cmake index ffce97e..a65fd2c 100644 --- a/Modules/Compiler/NAG-Fortran.cmake +++ b/Modules/Compiler/NAG-Fortran.cmake @@ -31,6 +31,7 @@ endif() set(CMAKE_Fortran_SUBMODULE_SEP ".") set(CMAKE_Fortran_SUBMODULE_EXT ".sub") set(CMAKE_Fortran_MODDIR_FLAG "-mdir ") +set(CMAKE_Fortran_MODDIR_INCLUDE_FLAG "-I") # -mdir does not affect search path set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC") set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed") set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free") |