Skip to content

Commit 600b7a3

Browse files
committed
Added detection of MSVC1911
This is VS2017 Preview. It makes sure the version is detected properly and the INSTALL target then correctly installs to x64/vc15 (the same as MSVC1910).
1 parent f670a99 commit 600b7a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/OpenCVDetectCXXCompiler.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if(MSVC)
160160
set(OpenCV_RUNTIME vc12)
161161
elseif(MSVC_VERSION EQUAL 1900)
162162
set(OpenCV_RUNTIME vc14)
163-
elseif(MSVC_VERSION EQUAL 1910)
163+
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
164164
set(OpenCV_RUNTIME vc15)
165165
endif()
166166
elseif(MINGW)

cmake/templates/OpenCVConfig.root-WIN32.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if(MSVC)
7878
set(OpenCV_RUNTIME vc12)
7979
elseif(MSVC_VERSION EQUAL 1900)
8080
set(OpenCV_RUNTIME vc14)
81-
elseif(MSVC_VERSION EQUAL 1910)
81+
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
8282
set(OpenCV_RUNTIME vc15)
8383
endif()
8484
elseif(MINGW)

0 commit comments

Comments
 (0)