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.
8 lines
91 B
Fortran
8 lines
91 B
Fortran
!DEC$ ATTRIBUTES DLLEXPORT :: HELLO
|
|
SUBROUTINE HELLO
|
|
|
|
PRINT *, 'Hello'
|
|
CALL WORLD
|
|
|
|
END
|