Since Python 3 is the default Python version on some distributions (e.g. Arch Linux), we need to use the CMake variable storing the actual Python executable. Then, to use Python 2, since CMake often mixes up Python 2/3 libraries (even if Python 2 is set in CMakeLists.txt):
Since Python 3 is the default Python version on some distributions (e.g. Arch Linux), we need to use the CMake variable storing the actual Python executable. Then, to use Python 2, since CMake often mixes up Python 2/3 libraries (even if Python 2 is set in
CMakeLists.txt
):