summaryrefslogtreecommitdiffstats
path: root/Tests/VSGNUFortran/subdir/fortran/hello.f
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2012-01-27 16:14:00 (GMT)
committerBrad King <brad.king@kitware.com>2012-02-09 13:38:52 (GMT)
commit48a09f82ccadf93eb2d60c9efe5da783327a8520 (patch)
treed6a8acaca1b3bfa6c4288d36c956a48324d506d7 /Tests/VSGNUFortran/subdir/fortran/hello.f
parent067c1f44a80ed8fb32e56918a57437142c64b049 (diff)
downloadCMake-48a09f82ccadf93eb2d60c9efe5da783327a8520.zip
CMake-48a09f82ccadf93eb2d60c9efe5da783327a8520.tar.gz
CMake-48a09f82ccadf93eb2d60c9efe5da783327a8520.tar.bz2
CMakeAddFortranSubdirectory: Make IMPORTED targets GLOBAL
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.
Diffstat (limited to 'Tests/VSGNUFortran/subdir/fortran/hello.f')
-rw-r--r--Tests/VSGNUFortran/subdir/fortran/hello.f7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/VSGNUFortran/subdir/fortran/hello.f b/Tests/VSGNUFortran/subdir/fortran/hello.f
new file mode 100644
index 0000000..e52119a
--- /dev/null
+++ b/Tests/VSGNUFortran/subdir/fortran/hello.f
@@ -0,0 +1,7 @@
+!DEC$ ATTRIBUTES DLLEXPORT :: HELLO
+ SUBROUTINE HELLO
+
+ PRINT *, 'Hello'
+ CALL WORLD
+
+ END