Index: cmake/CMakeLists.txt |
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt |
index b18510ebd4b66e0c1e7fddf43bb5742f4020eb4f..fd1b98cc56e6111a67ab18d4d7e3f5b0c3f4a3e9 100644 |
--- a/cmake/CMakeLists.txt |
+++ b/cmake/CMakeLists.txt |
@@ -130,12 +130,14 @@ endif() |
# Certain files must be compiled with support for SSSE3, SSE4.1, AVX, or AVX2 intrinsics. |
file (GLOB_RECURSE ssse3_srcs ../src/*ssse3*.cpp ../src/*SSSE3*.cpp) |
-file (GLOB_RECURSE sse41_srcs ../src/*sse4*.cpp ../src/*SSE4*.cpp) |
+file (GLOB_RECURSE sse41_srcs ../src/*sse41*.cpp ../src/*SSE41*.cpp) |
+file (GLOB_RECURSE sse42_srcs ../src/*sse42*.cpp ../src/*SSE42*.cpp) |
file (GLOB_RECURSE avx_srcs ../src/*_avx.cpp) |
file (GLOB_RECURSE avx2_srcs ../src/*_avx2.cpp) |
if (NOT WIN32) |
set_source_files_properties(${ssse3_srcs} PROPERTIES COMPILE_FLAGS -mssse3) |
set_source_files_properties(${sse41_srcs} PROPERTIES COMPILE_FLAGS -msse4.1) |
+ set_source_files_properties(${sse42_srcs} PROPERTIES COMPILE_FLAGS -msse4.2) |
set_source_files_properties(${avx_srcs} PROPERTIES COMPILE_FLAGS -mavx) |
set_source_files_properties(${avx2_srcs} PROPERTIES COMPILE_FLAGS -mavx2) |
endif() |