View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013239CMakeCMakepublic2012-05-21 11:092012-10-01 13:23
ReporterC.M. 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformAll platformsOSAll OSOS VersionAll
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013239: Not all Fortran dependencies are recognized.
DescriptionPre-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 ReproduceGenerate 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 InformationReason 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 <>.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029545)
Brad King (manager)
2012-05-22 14:16

Good catch. I think that came from makedepf90:

  http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmDependsFortranLexer.in.l;hb=v2.8.8#l13 [^]

This should fix it:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ad210790 [^]

Adding a test for this will require construction of a test like the BuildDepends test but for Fortran. Unfortunately I do not have time to do that now.
(0031133)
David Cole (manager)
2012-10-01 13:23

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-05-21 11:09 C.M. New Issue
2012-05-22 14:16 Brad King Note Added: 0029545
2012-05-22 14:16 Brad King Assigned To => Brad King
2012-05-22 14:16 Brad King Status new => resolved
2012-05-22 14:16 Brad King Resolution open => fixed
2012-05-22 14:16 Brad King Fixed in Version => CMake 2.8.9
2012-05-22 14:16 Brad King Target Version => CMake 2.8.9
2012-10-01 13:23 David Cole Note Added: 0031133
2012-10-01 13:23 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team