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
5e241e7c
Commit
5e241e7c
authored
Sep 09, 2018
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMAKE: Improve python detection
parent
87ed12b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
OpenCVDetectPython.cmake
cmake/OpenCVDetectPython.cmake
+4
-2
No files found.
cmake/OpenCVDetectPython.cmake
View file @
5e241e7c
...
...
@@ -254,10 +254,12 @@ find_python(3.4 "${MIN_VER_PYTHON3}" PYTHON3_LIBRARY PYTHON3_INCLUDE_DIR
if
(
PYTHON_DEFAULT_EXECUTABLE
)
set
(
PYTHON_DEFAULT_AVAILABLE
"TRUE"
)
elseif
(
PYTHON2INTERP_FOUND
)
# Use Python 2 as default Python interpreter
elseif
(
PYTHON2_EXECUTABLE AND PYTHON2INTERP_FOUND
)
# Use Python 2 as default Python interpreter
set
(
PYTHON_DEFAULT_AVAILABLE
"TRUE"
)
set
(
PYTHON_DEFAULT_EXECUTABLE
"
${
PYTHON2_EXECUTABLE
}
"
)
elseif
(
PYTHON3INTERP_FOUND
)
# Use Python 3 as fallback Python interpreter (if there is no Python 2)
elseif
(
PYTHON3_EXECUTABLE AND PYTHON3INTERP_FOUND
)
# Use Python 3 as fallback Python interpreter (if there is no Python 2)
set
(
PYTHON_DEFAULT_AVAILABLE
"TRUE"
)
set
(
PYTHON_DEFAULT_EXECUTABLE
"
${
PYTHON3_EXECUTABLE
}
"
)
endif
()
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