diff options
author | Brad King <brad.king@kitware.com> | 2021-03-08 18:07:14 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-08 13:07:20 -0500 |
commit | 155ec56c9f2d9593527f01c300ed994cf317909f (patch) | |
tree | 7484cb081daa68e3c0da1066a58277e6bdf1103f | |
parent | 412479b9d8476b1c9d696fc38db6977404e0ad05 (diff) | |
parent | ef513fe3d1d864d865d7143699834228988a7cd7 (diff) | |
download | cmake-155ec56c9f2d9593527f01c300ed994cf317909f.tar.gz |
Merge topic 'cray-fortran' into release-3.20
ef513fe3d1 Cray: Enable explicit Fortran preprocessing for Ninja generator
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5882
-rw-r--r-- | Modules/Compiler/Cray-Fortran.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/Cray-Fortran.cmake b/Modules/Compiler/Cray-Fortran.cmake index 696ae76074..0d5e1c7679 100644 --- a/Modules/Compiler/Cray-Fortran.cmake +++ b/Modules/Compiler/Cray-Fortran.cmake @@ -19,3 +19,7 @@ else() set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "-eZ") set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF "-dZ") endif() + +if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 11.0) + set(CMAKE_Fortran_PREPROCESS_SOURCE "<CMAKE_Fortran_COMPILER> -o <PREPROCESSED_SOURCE> <DEFINES> <INCLUDES> <FLAGS> -eP <SOURCE>") +endif() |