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