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
8e21f808
Commit
8e21f808
authored
Nov 07, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: allow custom OpenCV_ARCH / OpenCV_RUNTIME values
parent
ac22d3c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
OpenCVDetectCXXCompiler.cmake
cmake/OpenCVDetectCXXCompiler.cmake
+3
-1
OpenCVConfig.root-WIN32.cmake.in
cmake/templates/OpenCVConfig.root-WIN32.cmake.in
+3
-1
No files found.
cmake/OpenCVDetectCXXCompiler.cmake
View file @
8e21f808
...
...
@@ -93,7 +93,9 @@ if(NOT DEFINED OpenCV_STATIC)
endif
()
endif
()
if
(
MSVC
)
if
(
DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME
)
# custom overrided values
elseif
(
MSVC
)
if
(
CMAKE_CL_64
)
set
(
OpenCV_ARCH x64
)
elseif
((
CMAKE_GENERATOR MATCHES
"ARM"
)
OR
(
"
${
arch_hint
}
"
STREQUAL
"ARM"
)
OR
(
CMAKE_VS_EFFECTIVE_PLATFORMS MATCHES
"ARM|arm"
))
...
...
cmake/templates/OpenCVConfig.root-WIN32.cmake.in
View file @
8e21f808
...
...
@@ -57,7 +57,9 @@ if(NOT DEFINED OpenCV_CUDA)
endif()
endif()
if(MSVC)
if(DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME)
# custom overrided values
elseif(MSVC)
if(CMAKE_CL_64)
set(OpenCV_ARCH x64)
elseif((CMAKE_GENERATOR MATCHES "ARM") OR ("${arch_hint}" STREQUAL "ARM") OR (CMAKE_VS_EFFECTIVE_PLATFORMS MATCHES "ARM|arm"))
...
...
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