From: navarrop Date: Mon, 22 Nov 2010 15:18:57 +0000 (+0000) Subject: Make static libraries if enabled with supernovae mode. X-Git-Tag: v3_5~223 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b6cf5e073c72d37d8d3660c7f08807f281a86b7d Make static libraries if enabled with supernovae mode. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8607 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index f3cee664a9..62499fed0a 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -61,7 +61,13 @@ if(enable_smpi) endif(enable_smpi) add_library(simgrid SHARED ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${simgrid_fragile_sources}) + if(enable_lib_static) + add_library(simgrid_static STATIC ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${simgrid_fragile_sources}) + endif(enable_lib_static) add_library(gras SHARED ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${gras_fragile_sources}) if(enable_smpi) add_library(smpi SHARED ${PROJECT_DIRECTORY}/src/supernovae_smpi.c) + if(enable_lib_static) + add_library(smpi_static STATIC ${PROJECT_DIRECTORY}/src/supernovae_smpi.c) + endif(enable_lib_static) endif(enable_smpi)