Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more explicit error message
[simgrid.git] / buildtools / Cmake / MakeExeLib.cmake
index a539c91..c776af1 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)
 
@@ -22,6 +23,10 @@ set(GRAS_DEP "-lm -lpthread")
 set(SIMGRID_DEP "-lm")
 set(SMPI_DEP "")
 
+if(HAVE_PCRE_LIB)
+       SET(SIMGRID_DEP "${SIMGRID_DEP} -lpcre")
+endif(HAVE_PCRE_LIB)
+
 if(HAVE_RUBY)
        set(SIMGRID_DEP "${SIMGRID_DEP} -l${RUBY_LIBRARY_NAME} -module")
        ADD_CUSTOM_TARGET(link_simgrid_ruby ALL
@@ -83,6 +88,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