[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.34 1.35 world.def NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Oct 26 11:07:30 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv4185/Tests/Fortran

Modified Files:
	CMakeLists.txt 
Added Files:
	world.def 
Log Message:
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.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.34
retrieving revision 1.35
diff -C 2 -d -r1.34 -r1.35
*** CMakeLists.txt	23 Oct 2009 12:24:41 -0000	1.34
--- CMakeLists.txt	26 Oct 2009 15:07:23 -0000	1.35
***************
*** 10,14 ****
  
  add_library(hello STATIC hello.f)
! add_library(world SHARED world.f)
  add_executable(testf testf.f)
  target_link_libraries(testf hello world)
--- 10,14 ----
  
  add_library(hello STATIC hello.f)
! add_library(world SHARED world.f world.def)
  add_executable(testf testf.f)
  target_link_libraries(testf hello world)

--- NEW FILE: world.def ---
EXPORTS
        WORLD



More information about the Cmake-commits mailing list