Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
creating a static version of libsmpi version to link against HPL benchmark
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Sep 2010 15:18:04 +0000 (15:18 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Sep 2010 15:18:04 +0000 (15:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8195 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/Distrib.cmake
buildtools/Cmake/MakeExeLib.cmake

index a762f21..f22e55c 100755 (executable)
@@ -36,6 +36,9 @@ install(FILES ${CMAKE_BINARY_DIR}/lib/libsimgrid_static.a
 if(enable_smpi)        
   install(TARGETS smpi
           DESTINATION $ENV{DESTDIR}${prefix}/lib/)
+  install(FILES ${CMAKE_BINARY_DIR}/lib/libsmpi_static.a 
+        RENAME libsmpi.a
+        DESTINATION $ENV{DESTDIR}${prefix}/lib/)
 endif(enable_smpi)     
 
 # include files
index a539c91..c3e9e90 100644 (file)
@@ -8,6 +8,7 @@ else(enable_supernovae)
        add_library(gras SHARED ${gras_sources})
        if(enable_smpi)
                add_library(smpi SHARED ${SMPI_SRC})
+               add_library(smpi_static STATIC ${SMPI_SRC})
        endif(enable_smpi)
 endif(enable_supernovae)
 
@@ -83,6 +84,7 @@ add_dependencies(simgrid_static maintainer_files)
                                
 if(enable_smpi)
        target_link_libraries(smpi      simgrid ${SMPI_DEP})
+       target_link_libraries(smpi_static simgrid ${SMPI_DEP})
 endif(enable_smpi)
 
 ### Make EXEs