Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Attempt to ease detection of boost libraries.
[simgrid.git] / tools / cmake / MakeLibWin.cmake
index e7c5783..d76e274 100644 (file)
@@ -17,7 +17,15 @@ else()
   set(SIMGRID_DEP "-lm")
 
   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()