fix(cmake): correctly detect FindPython policy and better warning (#4806)

2 files changed