Universal way of checking if Python3 is set regardless of module used to do so

In the usecase where my repo is a subrepo of someone else they might have set Python3 upstream using FindPythonInterp, FindPython or FindPython3 (maybe there are more ways even?). In such cases I want to point that executable to an internal variable to be used for my Python3 needs.
Is there a universal way of checking these without looping through all three and see if eg PYTHON_VERSION_MAJOR, Python_VERSION_MAJOR or Python3_VERSION_MAJOR has been set without looping through all three of them (and then setting their respective _EXECUTABLE to my aforementioned variable)?
Thanks a lot.

I don’t think there’s a way to do that right now. I would recommend you ignore PythonInterp and push projects to stop using it (document that if they don’t, they can add a set(Python3_VERSION_MAJOR) variable to bridge the gap for your project. FindPythonInterp is just not the way any “find python” infrastructure should have worked.

Cc: @marc.chevrier

Thanks, yes that sounds like the most sensible option.