[CMake] ccmake and fortran

William A. Hoffman billlist at nycap.rr.com
Mon Aug 14 11:23:16 EDT 2006


At 11:05 AM 8/14/2006, Arjen Markus wrote:

>>>>Can we just have the rule for both?   Basically, anything after a c should be a comment?
>>>>If it is old fixed format fortran it won't have modules anyway, and should have no depends.
>>>>So, if it finds too many comments because of a stray c in the code it won't hurt.
>>>>
>>>>      
>>>
>>>Pre-Fortran 90 fixed form Fortran can have dependencies too: include files.
>>>
>>>But I would say: the first rule is safe enough - look at the extension to decide what
>>>form the source code has. That should make life a lot easier.
>>>    
>>
>>
>>But you are not going to have a include file that is after a c with any type of formatting,
>>are you?
>>  
>No, the include statement is simple:
>INCLUDE 'filename'
>
>No variations.

Right so, as far as comments go, we should have to care if it is free format or not.
If it is fixed format then the only depends that it will have will come from the INCLUDE
statement that must be at the start of the line.   And if we have a mistaken comment
it can not hurt.

-Bill



More information about the CMake mailing list