Improve gmxPythonDiscovery.cmake
authorM. Eric Irrgang <mei2n@virginia.edu>
Wed, 7 Oct 2020 13:28:58 +0000 (13:28 +0000)
committerM. Eric Irrgang <mei2n@virginia.edu>
Wed, 7 Oct 2020 13:28:58 +0000 (13:28 +0000)
commit05e431bd6370c11610449c38ee8c05d7eaf9fde0
tree2b049be2704dda5f0cc7de151197ae4589329465
parent1d06456f39d5aa4315ca27ff972ce670ac38723a
Improve gmxPythonDiscovery.cmake

* Do a better job of urging CMake 3.15+ to use the requested Python
  installation when a user specifies Python3_ROOT_DIR.
* Adopt another CMake 3.15 feature: Python3_FIND_VIRTUALENV is much more
  readable than the older alternatives.
* Allow FindPython inputs to be set before entering the module (such as
  with `-D` command line arguments) by checking before setting.
* Clarify which parts of this CMake module apply to the main FindPython
  based detection and which parts exist to provide hints to other
  embedded / downstream detection.

Refs #3720
cmake/gmxPythonDiscovery.cmake