X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f86e6af017daa4b31f72b5644b52e8962eee4b35..8f7873c57495707ccbdad488eab21356bf5496d7:/buildtools/Cmake/Supernovae.cmake diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index 424e7d07a0..62499fed0a 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -61,8 +61,13 @@ if(enable_smpi) endif(enable_smpi) add_library(simgrid SHARED ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${simgrid_fragile_sources}) -add_library(simgrid_static STATIC ${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) -endif(enable_smpi) \ No newline at end of file + if(enable_lib_static) + add_library(smpi_static STATIC ${PROJECT_DIRECTORY}/src/supernovae_smpi.c) + endif(enable_lib_static) +endif(enable_smpi)