Skip to content

Commit 2263d39

Browse files
authored
Merge pull request #1812 from martin-frbg/issue1806-2
Use KERNEL_DEFINITIONS rather than COMMON_OPTS to pass -march=skylake…
2 parents 56ebc7b + 81c9985 commit 2263d39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/system.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ endif ()
4343

4444
if (DEFINED TARGET)
4545
if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
46-
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
47-
set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512")
46+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
4847
endif()
4948
endif()
5049

0 commit comments

Comments
 (0)