Skip to content

FindPython: repect user-specified Python?_EXECUTABLE

FindPython ended up disregarding the value passed as the Python_EXECUTABLE since it always searched for the executable starting with the highest version in the major series. This fix ensures that we use the provided executable if it is suitable.

Fixes: #19492 (closed)

Closes #19492 (closed)

Edited by Utkarsh Ayachit

Merge request reports