Inconsistent linking between Mac and Linux
Our cmake project defines C, CXX, and Fortran compilers, and we have both executables that link a F90 main program, and executables that link c++ main programs. Our project builds fine on MacOS but on Linux, the F90 executable links with the CXX compiler, not the Fortran compiler. The F90 source is compiled to an object file correctly but then linked using CXX which is wrong and causes the fortran executable to fail to link.
Is this a known issue or a feature or shall I followup with more details?