Ticket #24503: patch-CMakeLists.txt.diff

File patch-CMakeLists.txt.diff, 675 bytes (added by stromnov (Andrey Stromnov), 15 years ago)
  • CMakeLists.txt

    old new  
    468468    string(REGEX MATCH "[0-9].[0-9]" PYTHON_VERSION_MAJOR_MINOR "${PYTHON_VERSION_FULL}")
    469469    if(UNIX)
    470470        set(PYTHON_PLUGIN_INSTALL_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages/opencv)
    471         set(PYTHON_PACKAGES_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages)
     471        set(PYTHON_PACKAGES_PATH @@PYTHON_PKGD@@)
    472472    endif()
    473473    if(WIN32)
    474474        get_filename_component(PYTHON_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${PYTHON_VERSION_MAJOR_MINOR}\\InstallPath]" ABSOLUTE CACHE)