opencv-3.4.1-python-lib-suffix-hack.patch 723 B

1234567891011121314
  1. --- a/cmake/OpenCVDetectPython.cmake 2018-05-31 09:14:42.998873104 +0200
  2. +++ b/cmake/OpenCVDetectPython.cmake 2018-05-31 09:26:08.444914001 +0200
  3. @@ -140,8 +140,8 @@
  4. else() #debian based assumed, install to the dist-packages.
  5. set(_packages_path "python${_version_major_minor}/dist-packages")
  6. endif()
  7. - if(EXISTS "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/${${packages_path}}")
  8. - set(_packages_path "lib${LIB_SUFFIX}/${_packages_path}")
  9. + if(EXISTS "${CMAKE_INSTALL_PREFIX}/lib${LIBPY_SUFFIX}/${${packages_path}}")
  10. + set(_packages_path "lib${LIBPY_SUFFIX}/${_packages_path}")
  11. else()
  12. set(_packages_path "lib/${_packages_path}")
  13. endif()