Finding pyenv python package using CMake

Hi, We are using pyenv to manage python versions in a project that mixes python and C++ code. We have one item whose CMakeLists file needs to find the python package which is specified by the project pyenv version. Right now it finds the system version instead. What is the cmake command to find the python interpreter for the version specified by pyenv? Ubuntu 18.04, cmake version 3.10 (or newer is ok), the python pyenv version is 3.7.3.

I suspect that specifying the search strategy and a ROOT variable based on the pyenv information CMake has access to. See the FindPython3 docs for details and the variables that matter.