projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84d62b6
)
Search python libs exactly matching to python executable on cmake 2.8.9 and newer
author
Andrey Kamaev
<no@email>
Sun, 24 Jun 2012 18:25:01 +0000
(18:25 +0000)
committer
Andrey Kamaev
<no@email>
Sun, 24 Jun 2012 18:25:01 +0000
(18:25 +0000)
cmake/OpenCVDetectPython.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVDetectPython.cmake
b/cmake/OpenCVDetectPython.cmake
index
e66410d
..
8be94ca
100644
(file)
--- a/
cmake/OpenCVDetectPython.cmake
+++ b/
cmake/OpenCVDetectPython.cmake
@@
-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)