diff options
author | Brad King <brad.king@kitware.com> | 2009-10-26 15:07:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-26 15:07:27 (GMT) |
commit | 707d05e9368f53707b23d565967c996878db27d2 (patch) | |
tree | 3a7972ff4073861728686f06e948c0bb2f434274 /Tests | |
parent | 7b28fbd6561285ef0eb4a9a1bcb857c7cb5adad3 (diff) | |
download | CMake-707d05e9368f53707b23d565967c996878db27d2.zip CMake-707d05e9368f53707b23d565967c996878db27d2.tar.gz CMake-707d05e9368f53707b23d565967c996878db27d2.tar.bz2 |
Fix Intel and MinGW Fortran DLL import libraries
We add Intel and MinGW Fortran linker options to create the import
library portion of a DLL. This allows other binaries to link to a
Fortran DLL.
We also update the Fortran test to use a .def file to specify exports
since there is no __declspec(dllexport) markup syntax in Fortran.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/Fortran/world.def | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index 3e890c8..01c115b 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -9,7 +9,7 @@ message("CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}") message("CMAKE_Fortran_FLAGS = ${CMAKE_Fortran_FLAGS}") add_library(hello STATIC hello.f) -add_library(world SHARED world.f) +add_library(world SHARED world.f world.def) add_executable(testf testf.f) target_link_libraries(testf hello world) diff --git a/Tests/Fortran/world.def b/Tests/Fortran/world.def new file mode 100644 index 0000000..ead7710 --- /dev/null +++ b/Tests/Fortran/world.def @@ -0,0 +1,2 @@ +EXPORTS + WORLD |