Merge pull request #2989 from martin-frbg/cmake-fma

Fix missing -mfma compiler flag in cmake builds without DYNAMIC_ARCH
This commit is contained in:
Martin Kroeker 2020-11-13 12:35:09 +01:00 committed by GitHub
commit d341a0fea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ if (NOT DYNAMIC_ARCH)
if (HAVE_AVX)
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx")
endif ()
if (HAVE_FMA3)
set (CCOMMON_OPT "${CCOMMON_OPT} -mfma")
endif ()
if (HAVE_SSE)
set (CCOMMON_OPT "${CCOMMON_OPT} -msse")
endif ()