Added warning when MSVC_VERSION is not recognized

pull/9668/head
joncrall 8 years ago
parent 6a5298a532
commit a936ec325b
  1. 2
      cmake/OpenCVDetectCXXCompiler.cmake

@ -114,6 +114,8 @@ if(MSVC)
set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
set(OpenCV_RUNTIME vc15)
else()
message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
endif()
elseif(MINGW)
set(OpenCV_RUNTIME mingw)

Loading…
Cancel
Save