X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a711adeffa407b15d22600c0e77d1636e5d77c90..b38d2b5748d38bdc4cc1a38c9b609d4b917a4893:/buildtools/Cmake/MakeExeLib.cmake diff --git a/buildtools/Cmake/MakeExeLib.cmake b/buildtools/Cmake/MakeExeLib.cmake index 498a9fa7ae..d3e082240e 100644 --- a/buildtools/Cmake/MakeExeLib.cmake +++ b/buildtools/Cmake/MakeExeLib.cmake @@ -4,11 +4,9 @@ if(enable_supernovae) include(${PROJECT_DIRECTORY}/buildtools/Cmake/Supernovae.cmake) else(enable_supernovae) add_library(simgrid SHARED ${simgrid_sources}) - add_library(simgrid_static STATIC ${simgrid_sources}) 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) @@ -34,6 +32,7 @@ if(HAVE_RUBY) ) add_custom_command( OUTPUT ${PROJECT_DIRECTORY}/src/bindings/ruby/libsimgrid.${LIB_EXE} + COMMAND ${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/src/bindings/ruby/libsimgrid.${LIB_EXE} # if it exists, creating the link fails. So cleanup before hand COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/lib/libsimgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/src/bindings/ruby/libsimgrid.${LIB_EXE} ) endif(HAVE_RUBY) @@ -65,8 +64,13 @@ if(HAVE_LUA) OUTPUT ${PROJECT_DIRECTORY}/examples/lua/simgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/examples/msg/masterslave/simgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/examples/simdag/simgrid.${LIB_EXE} + COMMAND ${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/examples/lua/simgrid.${LIB_EXE} # if it exists, creating the link fails. So cleanup before hand COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/lib/libsimgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/examples/lua/simgrid.${LIB_EXE} #for test + + COMMAND ${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/examples/msg/masterslave/simgrid.${LIB_EXE} # if it exists, creating the link fails. So cleanup before hand COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/lib/libsimgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/examples/msg/masterslave/simgrid.${LIB_EXE} #for test + + COMMAND ${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/examples/simdag/simgrid.${LIB_EXE} # if it exists, creating the link fails. So cleanup before hand COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/lib/libsimgrid.${LIB_EXE} ${PROJECT_DIRECTORY}/examples/simdag/simgrid.${LIB_EXE} #for test ) endif(HAVE_LUA) @@ -85,16 +89,13 @@ if(HAVE_POSIX_GETTIME) endif(HAVE_POSIX_GETTIME) target_link_libraries(simgrid ${SIMGRID_DEP}) -target_link_libraries(simgrid_static ${SIMGRID_DEP}) target_link_libraries(gras ${GRAS_DEP}) add_dependencies(gras maintainer_files) add_dependencies(simgrid maintainer_files) -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