Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCVDetectPython.cmake: prefer using FindPython #1133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 11, 2024

  1. OpenCVDetectPython.cmake: prefer using FindPython

    Reason for change:
    
    1. PythonInterp will misdetect Python3 as Python2 in distributions using newer versions of CMake:
    
    ```
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.11.2", minimum required is "2.7")
    -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.11.so (found suitable exact version "3.11.2")
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.11.2", minimum required is "3")
    -- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.11.so (found suitable exact version "3.11.2")
    ```
    
    2. PythonInterp will be removed soon and unusable: https://cmake.org/cmake/help/latest/module/FindPythonInterp.html, for Debian that is Debian 13
    
    Signed-off-by: Chen Jiali <[email protected]>
    CodeChenL committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    145d4b1 View commit details
    Browse the repository at this point in the history