Compiler x64 on Visual studio 2022 undetected

Welcome to the forum. You probably need to set the compiler to ifx instead of ifort. I had the same problem last week and was able to solve it in my specific environment by telling CMake it needed to look for a particular toolset. See the thread Problems with Visual Studio and Intel Fortran oneAPI