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
cfa9aa92
Commit
cfa9aa92
authored
Jun 24, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search python libs exactly matching to python executable on cmake 2.8.9 and newer
parent
84d62b69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
OpenCVDetectPython.cmake
cmake/OpenCVDetectPython.cmake
+5
-1
No files found.
cmake/OpenCVDetectPython.cmake
View file @
cfa9aa92
...
...
@@ -30,7 +30,11 @@ if(PYTHON_EXECUTABLE)
endif
()
if
(
NOT ANDROID AND NOT IOS
)
find_host_package
(
PythonLibs
${
PYTHON_VERSION_FULL
}
)
if
(
CMAKE_VERSION VERSION_GREATER 2.8.8
)
find_host_package
(
PythonLibs
${
PYTHON_VERSION_FULL
}
EXACT
)
else
()
find_host_package
(
PythonLibs
${
PYTHON_VERSION_FULL
}
)
endif
()
# cmake 2.4 (at least on Ubuntu 8.04 (hardy)) don't define PYTHONLIBS_FOUND
if
(
NOT PYTHONLIBS_FOUND AND PYTHON_INCLUDE_PATH
)
set
(
PYTHONLIBS_FOUND ON
)
...
...
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