mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Merge pull request #28326 from lebarsfa:4.x
"/arch:AVX" should be only for Visual Studio
This commit is contained in:
Vendored
+5
-1
@@ -24,7 +24,11 @@ endif()
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
foreach(file ${lib_srcs})
|
foreach(file ${lib_srcs})
|
||||||
if("${file}" MATCHES "_avx2.c")
|
if("${file}" MATCHES "_avx2.c")
|
||||||
set_source_files_properties("${file}" COMPILE_FLAGS "/arch:AVX")
|
if(MSVC)
|
||||||
|
set_source_files_properties("${file}" COMPILE_FLAGS "/arch:AVX")
|
||||||
|
else()
|
||||||
|
set_source_files_properties("${file}" COMPILE_FLAGS "-mavx")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user