CMAKE_ENV has not been supported since 2015. The build has never used it so replacing it with CONFIGURE_ENV should not be needed. It was added in r436552 by me.