You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct file discovery: Only add .f90 and .F90, not .f
Remove .f from file discovery as it uses separate preprocessing mechanism.
Only .f90 and .F90 should be added for Fortran 90 support.
The .F extension remains (was already in original code).
Updated documentation to clarify which extensions are auto-discovered.
Co-authored-by: klendathu2k <56083924+klendathu2k@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/fortran90-support.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,19 +48,20 @@ To use Fortran 90 in your project:
48
48
2. The cons build system will automatically discover these files when scanning the directory
49
49
3. The build system will automatically use the Fortran 90 compiler for these files
50
50
51
-
**Note**: The build system uses the `find_sources` function to automatically discover source files. As of this update, the following Fortran file extensions are recognized:
52
-
-`.f` - Fortran 77 fixed-form
51
+
**Note**: The build system uses the `find_sources` function to automatically discover source files. The following Fortran file extensions are recognized for automatic discovery:
53
52
-`.F` - Fortran 77 fixed-form with preprocessing
54
53
-`.f90` - Fortran 90 free-form
55
54
-`.F90` - Fortran 90 free-form with preprocessing
56
55
56
+
**Important**: `.f` files (Fortran 77 fixed-form without preprocessing) use a separate preprocessing compilation mechanism and are not included in automatic source file discovery. They are handled through a different build path.
57
+
57
58
Example directory structure:
58
59
```
59
60
MyPackage/
60
61
├── mycode.cxx
61
-
├── myfortran.f # Fortran 77
62
-
├── myfortran90.f90 # Fortran 90
63
-
└── preprocessed.F90 # Fortran 90 with preprocessing
62
+
├── myfortran.F # Fortran 77 with preprocessing (auto-discovered)
0 commit comments