- message (STATUS " stacktrace: MISSING. Install libboost-stacktrace-dev to display the stacktraces.")
- set(HAVE_BOOST_STACKTRACE 0)
-endif()
+ find_package(Boost 1.59 COMPONENTS context stacktrace_backtrace)
+ set(Boost_FOUND 1) # These components are optionals
+ message(STATUS "Mandatory components found. SimGrid is compilable.")
+ message(STATUS "Looking for optional Boost components:")
+
+ if (Boost_STACKTRACE_BACKTRACE_FOUND)
+ message (STATUS " stacktrace: found. Activating human-readable stack traces.")
+ set(HAVE_BOOST_STACKTRACE 1)
+ set(SIMGRID_DEP "${SIMGRID_DEP} -lboost_stacktrace_backtrace")
+ else()
+ message (STATUS " stacktrace: MISSING. Install libboost-stacktrace-dev to display the stacktraces.")
+ set(HAVE_BOOST_STACKTRACE 0)
+ endif()