未验证 提交 ec163076 编写于 作者: A Alexander Alekhin 提交者: GitHub

Merge pull request #10509 from kislinsk:support-msvc-14.1-minor-upgrades

...@@ -61,7 +61,9 @@ if(NOT DEFINED OpenCV_CUDA) ...@@ -61,7 +61,9 @@ if(NOT DEFINED OpenCV_CUDA)
endif() endif()
endif() endif()
if(MSVC) if(DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME)
# custom overrided values
elseif(MSVC)
if(CMAKE_CL_64) if(CMAKE_CL_64)
set(OpenCV_ARCH x64) set(OpenCV_ARCH x64)
set(OpenCV_TBB_ARCH intel64) set(OpenCV_TBB_ARCH intel64)
...@@ -81,7 +83,7 @@ if(MSVC) ...@@ -81,7 +83,7 @@ if(MSVC)
set(OpenCV_RUNTIME vc12) set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900) elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14) set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911) elseif(MSVC_VERSION MATCHES "^191[0-9]$")
set(OpenCV_RUNTIME vc15) set(OpenCV_RUNTIME vc15)
endif() endif()
elseif(MINGW) elseif(MINGW)
......
...@@ -82,7 +82,9 @@ if(NOT DEFINED OpenCV_STATIC) ...@@ -82,7 +82,9 @@ if(NOT DEFINED OpenCV_STATIC)
endif() endif()
endif() endif()
if(MSVC) if(DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME)
# custom overrided values
elseif(MSVC)
if(CMAKE_CL_64) if(CMAKE_CL_64)
set(OpenCV_ARCH x64) set(OpenCV_ARCH x64)
else() else()
...@@ -100,7 +102,7 @@ if(MSVC) ...@@ -100,7 +102,7 @@ if(MSVC)
set(OpenCV_RUNTIME vc12) set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900) elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14) set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911) elseif(MSVC_VERSION MATCHES "^191[0-9]$")
set(OpenCV_RUNTIME vc15) set(OpenCV_RUNTIME vc15)
endif() endif()
elseif(MINGW) elseif(MINGW)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册