I recently ran into this where my gcc was not meeting standards for installation. I had to upgrade my compiler to g++-11 however, for some reason, the build.py couldn't find CMAKE_CXX_COMPILER.
I had to edit build.py to manually append this argument. Please provide a functionality to do so.