X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/95126a283c054273ca881e2f1d9fc5febb22742c..c8b1d6a3c66f979741bc2400170de3bcf6c1e532:/tools/cmake/MakeLib.cmake diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 496c93548f..29c3b563fc 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -56,6 +56,10 @@ if(HAVE_LUA) SET(SIMGRID_DEP "${SIMGRID_DEP} ${LUA_LIBRARY} -ldl") endif() +if(HAVE_PAPI) + SET(SIMGRID_DEP "${SIMGRID_DEP} -lpapi") +endif() + if(HAVE_GRAPHVIZ) if(HAVE_CGRAPH_LIB) SET(SIMGRID_DEP "${SIMGRID_DEP} -lcgraph") @@ -95,10 +99,6 @@ if(HAVE_POSIX_GETTIME) SET(SIMGRID_DEP "${SIMGRID_DEP} -lrt") endif() -if(HAVE_BACKTRACE) - SET(SIMGRID_DEP "${SIMGRID_DEP} -lexecinfo") -endif() - # Compute the dependencies of SMPI ################################## if(enable_smpi AND APPLE) @@ -109,6 +109,9 @@ target_link_libraries(simgrid ${SIMGRID_DEP}) # Dependencies from maintainer mode ################################### +if(enable_maintainer_mode) + add_dependencies(simgrid smpi_generated_headers_call_location_tracing) +endif() if(enable_maintainer_mode AND PYTHON_EXE) add_dependencies(simgrid simcalls_generated_src) endif()