mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
use AVX2 SSE for cmake&clang on Windows
This commit is contained in:
parent
fd881e4486
commit
fc55b5872d
@ -273,6 +273,22 @@ if (WIN32)
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simddetect.cpp
|
||||
PROPERTIES COMPILE_FLAGS "/DAVX /DAVX2 /DSSE4_1")
|
||||
else(CLANG)
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductsse.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-msse4.1")
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixsse.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-msse4.1")
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/dotproductavx.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-mavx")
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/intsimdmatrixavx2.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-mavx2")
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/arch/simddetect.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-DAVX -DAVX2 -DSSE4_1")
|
||||
endif() # NOT CLANG
|
||||
endif() # MSVC
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user