This was missed in commit 05e510bf0b (CMP0132: Don't set compiler environment variables on first run, 2022-03-23, v3.24.0-rc1~380^2).
@@ -3,6 +3,8 @@ CMP0132
.. versionadded:: 3.24
+Do not set compiler environment variables on first run.
+
Apart from when using the Xcode generator and some Visual Studio generators,
CMake 3.23 and below will set environment variables like :envvar:`CC`,
:envvar:`CXX`, etc. when the corresponding language is enabled.