Skip to content

Commit 8a11ec1

Browse files
authored
Syntax fix
1 parent fa53b90 commit 8a11ec1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/system.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ if (DEFINED BINARY AND DEFINED TARGET AND BINARY EQUAL 32)
4141
endif ()
4242
endif ()
4343

44-
if (DEFINED TARGET AND ${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
44+
if (DEFINED TARGET)
45+
if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
4546
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
4647
set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512")
4748
endif()
49+
endif()
4850

4951
if (DEFINED TARGET)
5052
message(STATUS "Targeting the ${TARGET} architecture.")

0 commit comments

Comments
 (0)