[cmake-developers] [CMake 0013239]: Not all Fortran dependencies are recognized.
Mantis Bug Tracker
mantis at public.kitware.com
Mon May 21 11:09:22 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13239
======================================================================
Reported By: C.M.
Assigned To:
======================================================================
Project: CMake
Issue ID: 13239
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-21 11:09 EDT
Last Modified: 2012-05-21 11:09 EDT
======================================================================
Summary: Not all Fortran dependencies are recognized.
Description:
Pre-processor dependencies in FORTRAN using include files are not recognized
if specified as
#include <...>
which (at least for several Fortran preprocessors is a valid syntax), e.g.
http://www2.fz-juelich.de/jsc/docs/vendordocs/NAGWare_f95
/html/fpp.html#INCEXTERNAL
Steps to Reproduce:
Generate any Fortran file and insert an include statement
#include <file>
into it. Check the "*.depend" files. The include file is not listed.
Using
#include "file"
does however list the dependency correctly.
Additional Information:
Reason for this behavior is the flex rule in cmDependsFortranLexer.in.l
line 73-90 and 111 which allows strings only as "" or ''. Adding here
a third string rule for <...> does quick fix the problem. However, one probably
should create a new string type and add/change the CPP_INCLUDE parser rule
in cmDependsFortranParser.y as well to not allow all strings to be <>.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-21 11:09 C.M. New Issue
======================================================================
More information about the cmake-developers
mailing list