File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ if(NOT DEFINED OpenCV_CUDA)
61
61
endif ()
62
62
endif ()
63
63
64
- if (MSVC )
64
+ if (DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME )
65
+ # custom overrided values
66
+ elseif (MSVC )
65
67
if (CMAKE_CL_64 )
66
68
set (OpenCV_ARCH x64 )
67
69
set (OpenCV_TBB_ARCH intel64 )
@@ -81,7 +83,7 @@ if(MSVC)
81
83
set (OpenCV_RUNTIME vc12 )
82
84
elseif (MSVC_VERSION EQUAL 1900 )
83
85
set (OpenCV_RUNTIME vc14 )
84
- elseif (MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911 )
86
+ elseif (MSVC_VERSION MATCHES "^191[0-9]$" )
85
87
set (OpenCV_RUNTIME vc15 )
86
88
endif ()
87
89
elseif (MINGW )
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ if(NOT DEFINED OpenCV_STATIC)
82
82
endif ()
83
83
endif ()
84
84
85
- if (MSVC )
85
+ if (DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME )
86
+ # custom overrided values
87
+ elseif (MSVC )
86
88
if (CMAKE_CL_64 )
87
89
set (OpenCV_ARCH x64 )
88
90
else ()
@@ -100,7 +102,7 @@ if(MSVC)
100
102
set (OpenCV_RUNTIME vc12 )
101
103
elseif (MSVC_VERSION EQUAL 1900 )
102
104
set (OpenCV_RUNTIME vc14 )
103
- elseif (MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911 )
105
+ elseif (MSVC_VERSION MATCHES "^191[0-9]$" )
104
106
set (OpenCV_RUNTIME vc15 )
105
107
endif ()
106
108
elseif (MINGW )
You can’t perform that action at this time.
0 commit comments