diff --git a/patches/opencv-2.4.13.7-newer-msvc.patch b/patches/opencv-2.4.13.7-newer-msvc.patch index 4eb90aec..cbdffc7e 100644 --- a/patches/opencv-2.4.13.7-newer-msvc.patch +++ b/patches/opencv-2.4.13.7-newer-msvc.patch @@ -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) @@ -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)