Update CMakeLists.txt

This commit is contained in:
Martin Kroeker 2024-07-04 18:15:07 +02:00 committed by GitHub
parent e1eef56e05
commit abb5ca50ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ include_directories(${PROJECT_BINARY_DIR})
enable_language(Fortran) enable_language(Fortran)
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU) if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize -O0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0)
endif() endif()
if (CMAKE_Fortran_COMPILER_ID STREQUAL Flang) if (CMAKE_Fortran_COMPILER_ID STREQUAL Flang)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O2") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O2")