From ff3d7bb8712bd010eac5036890db4510a22b8537 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Fri, 13 Jan 2023 08:34:10 -0500 Subject: [PATCH] Added more checking to the profile compile mode --- cmake/Modules/SetFortranFlags.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Modules/SetFortranFlags.cmake b/cmake/Modules/SetFortranFlags.cmake index d869e89b6..103ff7e45 100644 --- a/cmake/Modules/SetFortranFlags.cmake +++ b/cmake/Modules/SetFortranFlags.cmake @@ -319,3 +319,7 @@ SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_PROFILE "${CMAKE_Fortran_FLAGS_RELEASE}" "/Qopt-report:5 /traceback -g3" # Windows Intel "-pg -fbacktrace" ) + +SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_PROFILE "${CMAKE_Fortran_FLAGS_PROFILE}" + Fortran "-check bounds,pointers,uninit" # Intel + )