Ninja: Fortran INCLUDE directive and Intel assume:nosource_include
Hi, I am using cmake 3.9.1 with ninja 1.7.2.git.kitware.dyndep-1. Our project has some target that rely on the intel fortran flag assume:nosource_include. The idea is that we can get include files from other directories other than the current source one.
say the flag is on, my file is src/test1.f90 and I have src/test1.inc and src2/test1.inc. if the flag is on and provided that the command line is something like "-Isrc2 -Isrc", the compiler will include src2/test1.inc.
for some reason, the build.ninja that get created insists in adding the current source dir to the list of INCLUDES for test1.f90.obj. build.ninja has then INCLUDES = -Isrc -Isrc2 -Isrc
I know that this is not ideal, but it is convenient.
thanks,
Nuno