[CMake] Mixed Fortran and C++ projects in Visual Studio with Intel Fortran Compiler
Marcus Sindermann
Marcus.Sindermann at simpack.de
Fri Jun 25 04:24:02 EDT 2010
Hi!
We have a problem on Windows with Visual Studio projects and the Intel Fortran 11.1 compiler.
We have a project the contains Fortran sources and links a static C++ library. So in Visual Studio this project is a Fortran project. With update 38
of the Fortran compiler this was working without any problems because the normal Visual Studio linker (link.exe) was used.
Now we want to use update 65 of the Fortran compiler. This update enforces Visual Studio to use the Intel Fortran xilink for linking Fortran projects.
But with this linker it isn't possible to link the static C++ library to the Fortran project.
It would be possible to change the library structure, so that the Fortran project only contains the Fortran sources. But we try do avoid this.
We also tried to set the LINKER_LANGUAGE target property to C++, but this doesn't change anything. Still the same Visual Studio projects are generated.
So is there any way in cmake to enforce Visual Studio to use link.exe instead of xilink.exe?
Bye
Marcus
More information about the CMake
mailing list