X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a2edf8c05c4c543c8926cb454d2fb66cb5e8a0d8..f438984b5defa97e49b2cf0813f4c609f35cf21f:/tools/cmake/MakeLibWin.cmake diff --git a/tools/cmake/MakeLibWin.cmake b/tools/cmake/MakeLibWin.cmake index fdbafe327d..d76e274957 100644 --- a/tools/cmake/MakeLibWin.cmake +++ b/tools/cmake/MakeLibWin.cmake @@ -3,26 +3,34 @@ add_library(simgrid SHARED ${simgrid_sources}) if(MSVC) - set_target_properties(simgrid PROPERTIES - COMPILE_FLAGS "/DDLL_EXPORT" + set_target_properties(simgrid PROPERTIES + COMPILE_FLAGS "/DDLL_EXPORT" VERSION ${libsimgrid_version} ) else() - set_target_properties(simgrid PROPERTIES - COMPILE_FLAGS "-DDLL_EXPORT" - LINK_FLAGS "-shared" - VERSION ${libsimgrid_version} - PREFIX "lib" SUFFIX ".dll" + set_target_properties(simgrid PROPERTIES + COMPILE_FLAGS "-DDLL_EXPORT" + LINK_FLAGS "-shared" + VERSION ${libsimgrid_version} + PREFIX "lib" SUFFIX ".dll" IMPORT_PREFIX "lib" IMPORT_SUFFIX ".dll") set(SIMGRID_DEP "-lm") - if (HAVE_PTHREAD) - set(SIMGRID_DEP "${SIMGRID_DEP} -lpthread") - endif() if (HAVE_BOOST_CONTEXTS) - set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}") + target_link_libraries(simgrid ${Boost_CONTEXT_LIBRARY}) + endif() + + if (HAVE_BOOST_STACKTRACE_BACKTRACE) + target_link_libraries(simgrid ${Boost_STACKTRACE_BACKTRACE_LIBRARY}) + endif() + + if (HAVE_BOOST_ADDR2LINE_BACKTRACE) + target_link_libraries(simgrid ${Boost_STACKTRACE_ADDR2LINE_LIBRARY}) endif() endif() target_link_libraries(simgrid ${SIMGRID_DEP}) +# The library can obviously use the internal headers +set_property(TARGET simgrid + APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")