<div dir="ltr">I've run into a problem with CMakeTestFortranCompiler reporting that the Fortran compiler does not support Fortran 90, when in fact it does. I've set CMake_Fortran_FLAGS at the outset to include the "-u" flag which has the effect of making "implicit none" the default (this is the NAG compiler, but other compilers have a similar option and the result is the same). Unfortunately, the little code snippets that CMakeTestFortranCompiler uses rely on the implicit typing and so the compiles fail.<div>
<br></div><div style>Why is that module using CMake_Fortran_FLAGS at all? Shouldn't it be invoking the bare compiler when it runs its tests? Or am I misusing CMake_Fortran_FLAGS? Should I be defining its value at a later stage in the cmake files?</div>
<div style><br></div><div style>Thanks for your advice,</div><div style> Neil</div></div>