diff options
author | Brad King <brad.king@kitware.com> | 2023-11-21 13:12:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-21 13:19:15 (GMT) |
commit | 4597fee41f08afe3489761f8b2f08b8ca0243408 (patch) | |
tree | 388d8059c55ca10928a885da14df3ffd561f0e38 /Modules/Compiler/GNU-Fortran.cmake | |
parent | 152a0aff2455ed670578fc132bbab3978f03b2b4 (diff) | |
download | CMake-4597fee41f08afe3489761f8b2f08b8ca0243408.zip CMake-4597fee41f08afe3489761f8b2f08b8ca0243408.tar.gz CMake-4597fee41f08afe3489761f8b2f08b8ca0243408.tar.bz2 |
GNU: Remove duplicate and unnecessary optimization flags for gfortran
Since commit a66004bee0 (Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in
toolchain files, 2016-07-05, v3.7.0-rc1~392^2) we've accidentally been
adding extra optimization flags instead of replacing unwanted flags.
Fixes: #25434
Diffstat (limited to 'Modules/Compiler/GNU-Fortran.cmake')
-rw-r--r-- | Modules/Compiler/GNU-Fortran.cmake | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/Compiler/GNU-Fortran.cmake b/Modules/Compiler/GNU-Fortran.cmake index 5dfb03e..452598b 100644 --- a/Modules/Compiler/GNU-Fortran.cmake +++ b/Modules/Compiler/GNU-Fortran.cmake @@ -17,10 +17,6 @@ endif() 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") - # No -isystem for Fortran because it will not find .mod files. unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran) |