-if(LIBUNWIND_FOUND)
- if(NOT APPLE)
- foreach(lib ${LIBUNWIND_LIBRARIES})
- SET(SIMGRID_DEP "${SIMGRID_DEP} ${lib}")
- endforeach()
- unset(lib)
- else()
- # Apple forbids to link directly against its libunwind implementation
- # So let's comply and link against the System framework
- SET(SIMGRID_DEP "${SIMGRID_DEP} -lSystem")
- endif()