swig-fortran / swig

This fork of SWIG creates Fortran wrapper code from C++ headers.
http://www.swig.org
Other
43 stars 11 forks source link

Make generated file extension configurable #48

Closed aprokop closed 6 years ago

aprokop commented 6 years ago

There are situations when we may want to use F90 instead of f90. However, right now this is hardcoded:

void FORTRAN::write_module()
{
    // Open file
    String* path = NewStringf(
            "%s%s.f90", SWIG_output_directory(), Char(d_module));
    File* out = NewFile(path, "w", SWIG_output_files());
sethrj commented 6 years ago

Implemented in 4407006a8: add the SWIG command line option -fext F90 to the cmake SWIG flags.