[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.1 1.2 my_module_.c NONE 1.1 mymodule_.c NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Aug 5 16:55:59 EDT 2009


Update of /cvsroot/CMake/CMake/Modules/FortranCInterface
In directory public:/mounts/ram/cvs-serv6384

Modified Files:
	CMakeLists.txt 
Added Files:
	my_module_.c mymodule_.c 
Log Message:
Teach FortranC interface for Intel, PGI, and gcc 4.2


--- NEW FILE: my_module_.c ---
void my_module_(void){}

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FortranCInterface/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** CMakeLists.txt	5 Aug 2009 17:40:28 -0000	1.1
--- CMakeLists.txt	5 Aug 2009 20:55:57 -0000	1.2
***************
*** 22,31 ****
  # List manglings of module symbol names to try.
  set(module_symbols
!   __my_module_MOD_my_sub  # GNU
    __my_module_NMOD_my_sub # VisualAge
    __mymodule_MOD_mysub    # GNU
    __mymodule_NMOD_mysub   # VisualAge
    my_module$my_sub        # HP
    my_module_mp_my_sub_    # Intel
    mymodule$mysub          # HP
    mymodule_mp_mysub_      # Intel
--- 22,35 ----
  # List manglings of module symbol names to try.
  set(module_symbols
!   __my_module_MOD_my_sub  # GNU 4.3
!   __my_module__my_sub     # GNU 4.2
!   __mymodule__mysub       # GNU 4.2
    __my_module_NMOD_my_sub # VisualAge
    __mymodule_MOD_mysub    # GNU
    __mymodule_NMOD_mysub   # VisualAge
+   my_module_my_sub_       # PGI 8
    my_module$my_sub        # HP
    my_module_mp_my_sub_    # Intel
+   mymodule_mysub_         # PGI 8
    mymodule$mysub          # HP
    mymodule_mp_mysub_      # Intel
***************
*** 67,71 ****
  
  # Provide symbols through C but fall back to Fortran.
! add_library(symbols STATIC ${symbol_sources})
  target_link_libraries(symbols myfort)
  
--- 71,75 ----
  
  # Provide symbols through C but fall back to Fortran.
! add_library(symbols STATIC ${symbol_sources} mymodule_.c my_module_.c)
  target_link_libraries(symbols myfort)
  

--- NEW FILE: mymodule_.c ---
void mymodule_(void){}



More information about the Cmake-commits mailing list