mirror of
https://github.com/opencv/opencv.git
synced 2026-01-18 17:21:42 +01:00
opencv/3rdparty/libwebp/CMakeLists.txt: "/arch:AVX" should be only for Visual Studio, "-mavx" for MinGW and possibly other compilers
This commit is contained in:
4
3rdparty/libwebp/CMakeLists.txt
vendored
4
3rdparty/libwebp/CMakeLists.txt
vendored
@@ -24,7 +24,11 @@ endif()
|
||||
if(WIN32)
|
||||
foreach(file ${lib_srcs})
|
||||
if("${file}" MATCHES "_avx2.c")
|
||||
if(MSVC)
|
||||
set_source_files_properties("${file}" COMPILE_FLAGS "/arch:AVX")
|
||||
else()
|
||||
set_source_files_properties("${file}" COMPILE_FLAGS "-mavx")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user