Skip to content

Commit f64243f

Browse files
authored
Add compiler options for sse/sse2/ssse3/sse4.1
1 parent 786c0a3 commit f64243f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmake/system.cmake

+12
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,21 @@ if (DEFINED TARGET)
7070
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
7171
endif()
7272
endif()
73+
if (DEFINED HAVE_SSE)
74+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse")
75+
endif()
76+
if (DEFINED HAVE_SSE2)
77+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse2")
78+
endif()
7379
if (DEFINED HAVE_SSE3)
7480
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse3")
7581
endif()
82+
if (DEFINED HAVE_SSSE3)
83+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mssse3")
84+
endif()
85+
if (DEFINED HAVE_SSE4_1)
86+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse4.1")
87+
endif()
7688
endif()
7789

7890
if (DEFINED TARGET)

0 commit comments

Comments
 (0)