diff options
author | Brad King <brad.king@kitware.com> | 2023-08-19 12:53:25 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-08-19 12:53:32 (GMT) |
commit | 412829a3d6b0faaa192da4234feb0b08c4528cea (patch) | |
tree | 32ac97bcaa29a65a020fc8f1bdec0e2fa3810331 | |
parent | df0a32f48eebe84c3980f7bb9f049fbd1b8d5caf (diff) | |
parent | 1140087adea98bd8d8974e4c18979f4949b52c34 (diff) | |
download | CMake-412829a3d6b0faaa192da4234feb0b08c4528cea.zip CMake-412829a3d6b0faaa192da4234feb0b08c4528cea.tar.gz CMake-412829a3d6b0faaa192da4234feb0b08c4528cea.tar.bz2 |
Merge topic 'LLVMFlang-Fortran-flags'
1140087ade LLVMFlang-Fortran: Add flags for build types
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8741
-rw-r--r-- | Modules/Compiler/LLVMFlang-Fortran.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/LLVMFlang-Fortran.cmake b/Modules/Compiler/LLVMFlang-Fortran.cmake index 9e72b06..291413e 100644 --- a/Modules/Compiler/LLVMFlang-Fortran.cmake +++ b/Modules/Compiler/LLVMFlang-Fortran.cmake @@ -14,3 +14,7 @@ set(CMAKE_Fortran_MODDIR_FLAG "-module-dir") set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "-cpp") set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF "-nocpp") set(CMAKE_Fortran_POSTPROCESS_FLAG "-ffixed-line-length-72") + +string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -O0 -g") +string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g") +string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3") |