Update CMakeLists.txt

This commit is contained in:
Martin Kroeker 2022-04-09 13:24:52 +02:00 committed by GitHub
parent c1b61990a1
commit 246010f0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ 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")
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")
endif() endif()