The check for modules support in the CMakeLists.txt file currently checks for the CMake Version, Ninja Version and Visual Studio Version before activating the use of the CXX_Module FILE_SET.
However, when the above conditions are true, some compilers like g++-13 and clang-15, which have support for modules, throw an error as they do not have support for the CXX module scanning.
closes #4709