Update system.cmake

This commit is contained in:
Martin Kroeker 2024-03-22 11:25:26 +01:00 committed by GitHub
parent 096bc1e919
commit a430fcbb63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endforeach ()
endif ()
if (${F_COMPILER} STREQUAL "NAG" OR ${F_COMPILER} STREQUAL "CRAY" OR CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
if (${F_COMPILER} STREQUAL "NAG" OR ${F_COMPILER} STREQUAL "CRAY" OR CMAKE_Fortran_COMPILER_ID MATCHES "LLVMFlang")
set(FILTER_FLAGS "-msse3;-mssse3;-msse4.1;-mavx;-mavx2,-mskylake-avx512")
if (CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
set(FILTER_FLAGS "${FILTER_FLAGS};-m32;-m64")