How to set up compilation with Intel Fortran compiler on Windows correctly?

library that has C, CXX, and Fortran sources.

Visual Studio + Intel Fortran do not support having both C/C++ and Fortran sources within a single target. That is a limitation of the tooling, not CMake. In order to support building with that toolset you need to put Fortran sources in a separate target.

1 Like