Use CMake 3.12+ facilities for detecting Python.
authorM. Eric Irrgang <mei2n@virginia.edu>
Thu, 23 Apr 2020 14:43:55 +0000 (14:43 +0000)
committerM. Eric Irrgang <mei2n@virginia.edu>
Thu, 23 Apr 2020 14:43:55 +0000 (14:43 +0000)
commitbb2dd483c292787c83f45e572c57302a253df961
treec9e61eff305e24e44a4effdeee46e4ebabb491f0
parente3d14d4af48006cc586d4b84df90faeee9bd3279
Use CMake 3.12+ facilities for detecting Python.

Consolidate Python detection in the main CMakeLists.txt before the
first usage in a subdirectory. Use FindPython3.cmake instead of
FindPythonInterp.cmake. Populate the legacy PYTHON_EXECUTABLE variable
for compatibility.

Fixes #2998
CMakeLists.txt
cmake/FindPythonModule.cmake
cmake/gmxPythonDiscovery.cmake [new file with mode: 0644]
cmake/gmxVersionInfo.cmake
docs/CMakeLists.txt
docs/doxygen/CMakeLists.txt
docs/gmxapi/userguide/install.rst
docs/release-notes/2021/major/portability.rst
python_packaging/CMakeLists.txt
tests/CMakeLists.txt