diff options
author | Brad King <brad.king@kitware.com> | 2017-08-24 13:33:18 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-08-24 13:33:55 (GMT) |
commit | 94299c496d54d037db35575447b011c6c8a35b0a (patch) | |
tree | 3d87c668a7f5a97a2bc3d7d46906a32840522eb7 /Modules | |
parent | 061b4f24be8281a1504f6993602d79b61b862d6d (diff) | |
parent | 90a34ff79196c90b64ab16066f957e51a78a7375 (diff) | |
download | CMake-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.cmake | 2 |
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") |