Browse Source

Update CMakeLists.txt

pull/4784/head
Martin Kroeker GitHub 1 year ago
parent
commit
abb5ca50ec
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/CMakeLists.txt

+ 2
- 1
test/CMakeLists.txt View File

@@ -3,7 +3,8 @@ 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")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize -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")


Loading…
Cancel
Save