Skip to content

Commit a936ec3

Browse files
committed
Added warning when MSVC_VERSION is not recognized
1 parent 6a5298a commit a936ec3

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)