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 " -o -eP ") +endif()