From be1109d811a637f03328d97a3cacfb9dad273744 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 23 Dec 2014 10:14:12 -0500 Subject: [PATCH] Oracle/Sun: Fix Fortran preprocessor rule generation The SunPro Fortran compiler uses "-F" instead of "-E" to request preprocessing. The output does not go to stdout so use "-o" to specify the output file. This fixes the guess originally made by commit b6b37e30 (Makefile: Add assembly and preprocessed targets for Fortran, 2014-11-05). --- Modules/Compiler/SunPro-Fortran.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/SunPro-Fortran.cmake b/Modules/Compiler/SunPro-Fortran.cmake index c38d5a547..e4db1e878 100644 --- a/Modules/Compiler/SunPro-Fortran.cmake +++ b/Modules/Compiler/SunPro-Fortran.cmake @@ -17,5 +17,5 @@ set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-g -xO2 -DNDEBUG") set(CMAKE_Fortran_MODDIR_FLAG "-moddir=") set(CMAKE_Fortran_MODPATH_FLAG "-M") -set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE " -E > ") +set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE " -F -o ") set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE " -S -o ")