Increased count of compilation steps since CMake 3.30.3 update

I was using CMake 3.26.4 before on several platforms (macOS, Linux, Windows). Since updating to the newest 3.30.3 the total number of steps to compile increased a lot (from 2k to almost 3.5k). The strange thing is that this only occured on macOS and Windows. Does anyone has an explanation why the increse of files could have happened and why not on Linux?

It seems to be introduced by this feature.
https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html

It can be disabled globally with this variable if not needed.
CMAKE_CXX_SCAN_FOR_MODULES

Strange is that this didn’t have an effect on the Linux compilation since I am also using Clang 16.0.6 which should support this.