X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b39bafc27f084e23751d10f11af8d6998cb09c9..8f7873c57495707ccbdad488eab21356bf5496d7:/buildtools/Cmake/Supernovae.cmake diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index f7f461b5ba..62499fed0a 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -61,9 +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) - add_library(smpi_static STATIC ${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)