File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -643,16 +643,16 @@ endif ()
643643
644644if (CMAKE_Fortran_COMPILER)
645645 if ("${F_COMPILER} " STREQUAL "NAGFOR" OR "${F_COMPILER} " STREQUAL "CRAY" OR CMAKE_Fortran_COMPILER_ID MATCHES "LLVMFlang.*" )
646- set (FILTER_FLAGS "-msse3;-mssse3;-msse4.1;-mavx;-mavx2,-mskylake-avx512" )
647- if (CMAKE_Fortran_COMPILER_ID MATCHES "LLVMFlang.*" )
648- message (STATUS "removing fortran flags" )
649- set (FILTER_FLAGS "${FILTER_FLAGS} ;-m32;-m64" )
646+ set (FILTER_FLAGS "-msse3;-mssse3;-msse4.1;-mavx;-mavx2,-mskylake-avx512" )
647+ if (CMAKE_Fortran_COMPILER_ID MATCHES "LLVMFlang.*" )
648+ message (STATUS "removing fortran flags" )
649+ set (FILTER_FLAGS "${FILTER_FLAGS} ;-m32;-m64" )
650+ endif ()
651+ foreach (FILTER_FLAG ${FILTER_FLAGS} )
652+ string (REPLACE ${FILTER_FLAG} "" LAPACK_FFLAGS ${LAPACK_FFLAGS} )
653+ string (REPLACE ${FILTER_FLAG} "" LAPACK_FPFLAGS ${LAPACK_FPFLAGS} )
654+ endforeach ()
650655 endif ()
651- foreach (FILTER_FLAG ${FILTER_FLAGS} )
652- string (REPLACE ${FILTER_FLAG} "" LAPACK_FFLAGS ${LAPACK_FFLAGS} )
653- string (REPLACE ${FILTER_FLAG} "" LAPACK_FPFLAGS ${LAPACK_FPFLAGS} )
654- endforeach ()
655- endif ()
656656endif ()
657657
658658if ("${F_COMPILER} " STREQUAL "GFORTRAN" )
You can’t perform that action at this time.
0 commit comments