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
fdefc4b0
Commit
fdefc4b0
authored
Nov 07, 2017
by
Alexander Alekhin
Committed by
Alexander Alekhin
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: allow custom OpenCV_ARCH / OpenCV_RUNTIME values
backport
8e21f808
parent
61d82926
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
OpenCVConfig.cmake
cmake/OpenCVConfig.cmake
+3
-1
OpenCVDetectCXXCompiler.cmake
cmake/OpenCVDetectCXXCompiler.cmake
+3
-1
No files found.
cmake/OpenCVConfig.cmake
View file @
fdefc4b0
...
@@ -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
)
...
...
cmake/OpenCVDetectCXXCompiler.cmake
View file @
fdefc4b0
...
@@ -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
()
...
...
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