cmake: python module updates

This commit is contained in:
Alexander Alekhin
2013-10-04 17:15:02 +04:00
parent c0a27ea1a1
commit 4adede4246
3 changed files with 38 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ if(PYTHON_EXECUTABLE)
endif()
if(NOT ANDROID AND NOT IOS)
ocv_check_environment_variables(PYTHON_LIBRARY PYTHON_INCLUDE_DIR)
if(CMAKE_VERSION VERSION_GREATER 2.8.8 AND PYTHON_VERSION_FULL)
find_host_package(PythonLibs ${PYTHON_VERSION_FULL} EXACT)
else()