Fix cblat3/zblat3 test program with gfortran.

libeigen/eigen!2122
This commit is contained in:
Antonio Sánchez
2026-02-10 01:50:57 +00:00
committed by Rasmus Munk Larsen
parent 0ac2a2df9f
commit 004d81a852

View File

@@ -48,5 +48,13 @@ ei_add_blas_test(zblat3)
# add_custom_target(level1)
# add_dependencies(level1 sblat1)
# Workaround for gfortran -O3 bug. The optimization
# introduces a bug in the calculation of the norm of the error
# in the complex case.
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
target_compile_options(cblat3 PRIVATE "-O0")
target_compile_options(zblat3 PRIVATE "-O0")
endif()
endif()