<div dir="ltr">I&#39;ve run into a problem with CMakeTestFortranCompiler reporting that the Fortran compiler does not support Fortran 90, when in fact it does.  I&#39;ve set CMake_Fortran_FLAGS at the outset to include the &quot;-u&quot; flag which has the effect of making &quot;implicit none&quot; 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&#39;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>