MantisBT - CMake
View Issue Details
0003109CMakeCMakepublic2006-04-07 09:362007-10-03 15:54
Samit Basu 
Brad King 
normalmajoralways
closedfixed 
 
 
0003109: Fortran dependancy checker does not ignore comments
The following simple test fails because the dependancy checker fails to ignore the "use funstuff" in ftest.f (which occurs in a comment). The work-around is to change the wording of comments to avoid the word "use".

ftest.f:
    program main
C use funstuff
    end

CMakeLists.txt
project(ftest Fortran)
add_executable(ftest ftest.f)
No tags attached.
related to 0005809closed Brad King Fortran 77/9x support enhancements 
has duplicate 0003195closed Brad King depend.make has incorrect f90 dependencies for USE 
has duplicate 0002361closed Brad King FORTRAN 9x module dependencies parsing 
Issue History
2007-10-03 15:46Brad KingRelationship addedrelated to 0005809
2007-10-03 15:47Brad KingRelationship addedhas duplicate 0003195
2007-10-03 15:49Brad KingRelationship addedhas duplicate 0002361
2007-10-03 15:54Brad KingStatusassigned => closed
2007-10-03 15:54Brad KingNote Added: 0009375
2007-10-03 15:54Brad KingResolutionopen => fixed

Notes
(0004053)
Brad King   
2006-05-03 18:28   
Bug 0003195 is a duplicate of this bug.
(0004056)
Brad King   
2006-05-03 19:45   
The bug is in "Source/cmDependsFortranLexer.in.l" or a related file. Nothing ever tells the lexer whether it is parsing a free for fixed format source. Currently free format is assumed always.

It looks like there is a new version of makedepf90 from which the parser was derived (with permission from the author to use a non-GPL license). The newer version has better support for switching between fixed and free format. The parser in CMake should probably be updated when this bug is fixed.
(0004646)
Brad King   
2006-08-15 11:03   
I'm assigning this bug to Bill since he committed changes to fix the issue:

Checking for path: /cvsroot/CMake/CMake/Source
Unrestricted user: hoffman
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.cxx,v <-- cmDependsFortranLexer.cxx
new revision: 1.8; previous revision: 1.7
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.h,v <-- cmDependsFortranLexer.h
new revision: 1.4; previous revision: 1.3
/cvsroot/CMake/CMake/Source/cmDependsFortranLexer.in.l,v <-- cmDependsFortranLexer.in.l
new revision: 1.8; previous revision: 1.7

(0009375)
Brad King   
2007-10-03 15:54   
The "makedepf90-2.8.8_port_cm-2.4.7.patch" patch from bug 0005809 has been committed. The changes fix this bug in cmake HEAD.