Use KERNEL_DEFINITIONS rather than COMMON_OPTS to pass -march=skylake-avx512

This commit is contained in:
Martin Kroeker 2018-10-11 11:03:27 +02:00 committed by GitHub
parent 8a11ec19d1
commit 81c9985c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ endif ()
if (DEFINED TARGET)
if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512")
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
endif()
endif()