Intel 2021.4.0: Fortran ABI info detection fails in VS 16.11.5
Both are last versions of Visual Studio 2019 and Intel oneAPI 2021 respectively. I also tried with Intel Fortran 2021.3.0 but the issue was still there. It can easily be reproduced with the following
cmake_minimum_required(VERSION 3.21) project(test-intel-fortran) enable_language(Fortran)
The error is the following:
-- The Fortran compiler identification is Intel 2021.4.0.20210910 -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - failed -- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe -- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe - broken CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestFortranCompiler.cmake:54 (message): The Fortran compiler "C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe" is not able to compile a simple test program.
The issue has also been raised recently on Stack Overflow and is still present in 3.22.0-rc1.