Skip to content

Commit 8755a19

Browse files
committed
Merge pull request opencv#9668 from Erotemic:msvc_version_warning
2 parents 6a5298a + a936ec3 commit 8755a19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/OpenCVDetectCXXCompiler.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ if(MSVC)
114114
set(OpenCV_RUNTIME vc14)
115115
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
116116
set(OpenCV_RUNTIME vc15)
117+
else()
118+
message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
117119
endif()
118120
elseif(MINGW)
119121
set(OpenCV_RUNTIME mingw)

0 commit comments

Comments
 (0)