Skip to content

Commit

Permalink
Fix cmake compiler flags for AVX/SSE support
Browse files Browse the repository at this point in the history
Commit 5f96ac1 had a typo
in the filename (simdetect.cpp / simddetect.cpp) which caused
a regression: AVX / AVX2 / SSE was no longer used.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jan 29, 2019
1 parent b60321e commit 394839c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ if (WIN32)
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixavx2.cpp
PROPERTIES COMPILE_FLAGS "/arch:AVX2")
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simdetect.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simddetect.cpp
PROPERTIES COMPILE_FLAGS "/DAVX /DAVX2 /DSSE4_1")
endif() # NOT CLANG
endif() # MSVC
Expand All @@ -282,7 +282,7 @@ else()
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixavx2.cpp
PROPERTIES COMPILE_FLAGS "-mavx2")
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simdetect.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simddetect.cpp
PROPERTIES COMPILE_FLAGS "-DAVX -DAVX2 -DSSE4_1")
endif()

Expand Down

0 comments on commit 394839c

Please sign in to comment.