<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 16 December 2016 at 14:38, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/15/2016 09:10 PM, Daniel Carrera wrote:<br>
> set(CMAKE_Fortran_PREPROCESS_<wbr>SOURCE<br>
> "<CMAKE_Fortran_COMPILER> -Mpreprocess <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")<br>
><br>
> I added that line to PGI-Fortran.cmake and it seems to work.<br>
<br>
Great!  I'll integrate that for CMake 3.8.<br>
<br></blockquote><div><br></div><div><br></div><div>Awesome!</div><div><br></div><div>Look... I just tested the Oracle compiler. I don't actually use it myself but I have it installed and it also has problems with CMake + Ninja. It looks like the same problem. So again I went to Modules/Compiler but this time I did not see an obvious .cmake file for Oracle. If you want to try to add Oracle to the list of compilers that CMake knows about, this might help:</div><div><br></div><div>1) Free download:</div><div><br></div><div><a href="http://www.oracle.com/technetwork/server-storage/developerstudio/downloads/index.html">http://www.oracle.com/technetwork/server-storage/developerstudio/downloads/index.html</a><br></div><div><br></div><div><br></div><div>2) To identify the compiler, the -V flag should help:</div><div><br></div><div>$ f90 -V<br></div><div>f90: Studio 12.5 Fortran 95 8.8 Linux_i386 2016/05/31</div><div><div><br></div></div><div><br></div><div>3) This is how you pre-process sources:</div><div><br></div><div><div>$ f90 -fpp -F foo.f90 -o output_file<br></div></div><div><br></div><div><br></div><div>Cheers,</div><div>Daniel.</div></div></div></div>