On Raspbian, when installing python-mako, it gets not found by CMake. It needs python3-mako.
python-mako
python3-mako