From e056006116b90b54e5e1e02a43eea84913585eb1 Mon Sep 17 00:00:00 2001 From: Simon Maertens Date: Wed, 13 Mar 2024 14:01:49 +0100 Subject: NAG-Fortran: Tell the Ninja generator how to preprocess Fortran sources Fixes: #21398 --- Modules/Compiler/NAG-Fortran.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/Compiler/NAG-Fortran.cmake b/Modules/Compiler/NAG-Fortran.cmake index a843001..a6636c4 100644 --- a/Modules/Compiler/NAG-Fortran.cmake +++ b/Modules/Compiler/NAG-Fortran.cmake @@ -46,3 +46,6 @@ set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-PIC") set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "-PIC") set(CMAKE_Fortran_RESPONSE_FILE_LINK_FLAG "-Wl,@") set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "-fpp") + +set(CMAKE_Fortran_PREPROCESS_SOURCE + " -fpp -F -o ") -- cgit v0.12