summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-24 13:33:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-24 13:33:55 (GMT)
commit94299c496d54d037db35575447b011c6c8a35b0a (patch)
tree3d87c668a7f5a97a2bc3d7d46906a32840522eb7 /Modules
parent061b4f24be8281a1504f6993602d79b61b862d6d (diff)
parent90a34ff79196c90b64ab16066f957e51a78a7375 (diff)
downloadCMake-94299c496d54d037db35575447b011c6c8a35b0a.zip
CMake-94299c496d54d037db35575447b011c6c8a35b0a.tar.gz
CMake-94299c496d54d037db35575447b011c6c8a35b0a.tar.bz2
Merge topic 'ninja-gfortran-fpreprocessed'
90a34ff7 Ninja: Fix references to source files in gfortran diagnostics Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1146
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/GNU-Fortran.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-Fortran.cmake b/Modules/Compiler/GNU-Fortran.cmake
index 94dc275..c333d50 100644
--- a/Modules/Compiler/GNU-Fortran.cmake
+++ b/Modules/Compiler/GNU-Fortran.cmake
@@ -7,6 +7,8 @@ set(CMAKE_Fortran_PREPROCESS_SOURCE
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-ffixed-form")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-ffree-form")
+set(CMAKE_Fortran_POSTPROCESS_FLAG "-fpreprocessed")
+
# No -DNDEBUG for Fortran.
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")