Turns out that my installations of VS2017 and Intel Fortran were not setting up correctly. I had to go to the Intel Fortran solution under the folder in my build directory under .\CMakeFiles\3.18.4\CompilerIdFortran. Then I opened the project in Visual Studio. Tools >> Options >> Intel Compilers and Tools >> Visual Fortran >> Compilers. Then I went to the x64 tab and instead of having “Latest” selected, I selected “Intel(R) Visual Fortran Compiler 19.1.0.166 [Intel(R) 64]” and this had the proper setup for compiling Fortran. There were also some files in the 2020 compilers_and_libraries dir that were not in the 2020.0.166 dir.
I hope that helps someone in the future if they have this specific error.