Skip to content

Commit

Permalink
Update opencv-2.4.13.7-newer-msvc.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Jun 10, 2024
1 parent 9a02866 commit cb096a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/opencv-2.4.13.7-newer-msvc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ diff -Nuarp opencv-2.4.13.7.orig/cmake/OpenCVConfig.cmake opencv-2.4.13.7/cmake/
set(OpenCV_RUNTIME vc15)
+ elseif(MSVC_VERSION MATCHES "^192[0-9]$")
+ set(OpenCV_RUNTIME vc16)
+ elseif(MSVC_VERSION MATCHES "^193[0-9]$")
+ elseif(MSVC_VERSION MATCHES "^19[34][0-9]$")
+ set(OpenCV_RUNTIME vc17)
endif()
elseif(MINGW)
Expand All @@ -21,7 +21,7 @@ diff -Nuarp opencv-2.4.13.7.orig/cmake/OpenCVDetectCXXCompiler.cmake opencv-2.4.
set(OpenCV_RUNTIME vc15)
+ elseif(MSVC_VERSION MATCHES "^192[0-9]$")
+ set(OpenCV_RUNTIME vc16)
+ elseif(MSVC_VERSION MATCHES "^193[0-9]$")
+ elseif(MSVC_VERSION MATCHES "^19[34][0-9]$")
+ set(OpenCV_RUNTIME vc17)
endif()
elseif(MINGW)
Expand Down

0 comments on commit cb096a1

Please sign in to comment.