48a09f82cc
cmake_add_fortran_directory uses imported targets when using the mingw fortran compiler. This change makes those targets global in scope so they act just like the real targets that exist when a fortran compiler exists and regular add_subdirectory is used.
7 lines
80 B
Fortran
7 lines
80 B
Fortran
!DEC$ ATTRIBUTES DLLEXPORT :: WORLD
|
|
SUBROUTINE WORLD
|
|
|
|
PRINT *, 'World!'
|
|
|
|
END
|