From cb096a17f9fdd38a835b10bebdd7a18523bd6af8 Mon Sep 17 00:00:00 2001 From: nihui Date: Mon, 10 Jun 2024 14:31:06 +0800 Subject: [PATCH] Update opencv-2.4.13.7-newer-msvc.patch --- patches/opencv-2.4.13.7-newer-msvc.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)