Update CMakeLists.txt

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

View File

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