diff --git a/cmake/OpenCVConfig.cmake b/cmake/OpenCVConfig.cmake index 9069a72936..fa35b6fc3f 100644 --- a/cmake/OpenCVConfig.cmake +++ b/cmake/OpenCVConfig.cmake @@ -81,7 +81,7 @@ if(MSVC) set(OpenCV_RUNTIME vc12) elseif(MSVC_VERSION EQUAL 1900) set(OpenCV_RUNTIME vc14) - elseif(MSVC_VERSION EQUAL 1910) + elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911) set(OpenCV_RUNTIME vc15) endif() elseif(MINGW) diff --git a/cmake/OpenCVDetectCXXCompiler.cmake b/cmake/OpenCVDetectCXXCompiler.cmake index 191abd8862..b84c8f3c77 100644 --- a/cmake/OpenCVDetectCXXCompiler.cmake +++ b/cmake/OpenCVDetectCXXCompiler.cmake @@ -138,7 +138,7 @@ if(MSVC) set(OpenCV_RUNTIME vc12) elseif(MSVC_VERSION EQUAL 1900) set(OpenCV_RUNTIME vc14) - elseif(MSVC_VERSION EQUAL 1910) + elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911) set(OpenCV_RUNTIME vc15) endif() elseif(MINGW)