Skip to content

Commit

Permalink
Updated flags to be ifx compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 11, 2024
1 parent db513e0 commit ab4551f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/SetFortranFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,11 @@ IF (CMAKE_BUILD_TYPE STREQUAL "PROFILE")
# Enables the optimization reports to be generated
IF (WINOPT)
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_PROFILE "${CMAKE_Fortran_FLAGS_RELEASE}"
Fortran "/O2 /Qopt-report:5 /traceback /Z7" # Intel Windows
Fortran "/O2 /Qopt-report:3 /traceback /Z7" # Intel Windows
)
ELSE ()
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS_PROFILE "${CMAKE_Fortran_FLAGS_RELEASE}"
Fortran "-O2 -pg -qopt-report=5 -traceback -p -g3" # Intel
Fortran "-O2 -pg -qopt-report=3 -traceback -p -g3" # Intel
)
ENDIF ()
ELSEIF (COMPILER_OPTIONS STREQUAL "GNU")
Expand Down

0 comments on commit ab4551f

Please sign in to comment.