Alternate compiler cannot be set with environment variables

If I run `env CXX=g++44 cmake28` it doesn't find the compiler, whereas `cmake28 -DCMAKE_CXX_COMPILER=g++44` does.