diff options
author | Brad King <brad.king@kitware.com> | 2021-03-08 18:07:14 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-08 18:07:20 (GMT) |
commit | 31fc010259d93181cc6e4a55e82a028ae6b332de (patch) | |
tree | fcb5f5a77566e6022d83fcf6a733820ef32a86b3 /Modules/Compiler | |
parent | ae791686e7de6c0e80b6120bf2a8949ad5fe4ee5 (diff) | |
parent | ef513fe3d1d864d865d7143699834228988a7cd7 (diff) | |
download | CMake-31fc010259d93181cc6e4a55e82a028ae6b332de.zip CMake-31fc010259d93181cc6e4a55e82a028ae6b332de.tar.gz CMake-31fc010259d93181cc6e4a55e82a028ae6b332de.tar.bz2 |
Merge topic 'cray-fortran'
ef513fe3d1 Cray: Enable explicit Fortran preprocessing for Ninja generator
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5882
Diffstat (limited to 'Modules/Compiler')
-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 696ae76..0d5e1c7 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() |