From 1cd40bd2264bed272d404796f20b5c77155f5a1f Mon Sep 17 00:00:00 2001 From: Christian Pfeiffer Date: Wed, 10 May 2017 19:33:48 +0200 Subject: SunPro: Use -fpp to process all files By using only -F, SunPro does not process files that don't have a .F or .F90 extension. This means that the preprocess rules don't quite work as expected, for instance breaking the Ninja generator's behavior during cmake_ninja_depends. --- Modules/Compiler/SunPro-Fortran.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Compiler/SunPro-Fortran.cmake b/Modules/Compiler/SunPro-Fortran.cmake index 6607926..9b25c0b 100644 --- a/Modules/Compiler/SunPro-Fortran.cmake +++ b/Modules/Compiler/SunPro-Fortran.cmake @@ -19,7 +19,7 @@ set(CMAKE_Fortran_MODDIR_FLAG "-moddir=") set(CMAKE_Fortran_MODPATH_FLAG "-M") set(CMAKE_Fortran_PREPROCESS_SOURCE - " -F -o ") + " -F -fpp -o ") -set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE " -F -o ") +set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE " -F -fpp -o ") set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE " -S -o ") -- cgit v0.12