Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ac22d3c8
Commit
ac22d3c8
authored
Nov 07, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: MSVC_VERSION use pattern matching
parent
62737c77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
OpenCVDetectCXXCompiler.cmake
cmake/OpenCVDetectCXXCompiler.cmake
+1
-1
OpenCVConfig.root-WIN32.cmake.in
cmake/templates/OpenCVConfig.root-WIN32.cmake.in
+1
-1
No files found.
cmake/OpenCVDetectCXXCompiler.cmake
View file @
ac22d3c8
...
...
@@ -114,7 +114,7 @@ if(MSVC)
set
(
OpenCV_RUNTIME vc12
)
elseif
(
MSVC_VERSION EQUAL 1900
)
set
(
OpenCV_RUNTIME vc14
)
elseif
(
MSVC_VERSION
EQUAL 1910 OR MSVC_VERSION EQUAL 1911 OR MSVC_VERSION EQUAL 1912
)
elseif
(
MSVC_VERSION
MATCHES
"^191[0-9]$"
)
set
(
OpenCV_RUNTIME vc15
)
else
()
message
(
WARNING
"OpenCV does not recognize MSVC_VERSION
\"
${
MSVC_VERSION
}
\"
. Cannot set OpenCV_RUNTIME"
)
...
...
cmake/templates/OpenCVConfig.root-WIN32.cmake.in
View file @
ac22d3c8
...
...
@@ -78,7 +78,7 @@ if(MSVC)
set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION
EQUAL 1910 OR MSVC_VERSION EQUAL 1911 OR MSVC_VERSION EQUAL 1912
)
elseif(MSVC_VERSION
MATCHES "^191[0-9]$"
)
set(OpenCV_RUNTIME vc15)
endif()
elseif(MINGW)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment