- if(NOT APPLE)
- SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind")
- 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()
- if("${CMAKE_SYSTEM}" MATCHES "Linux|FreeBSD")
- set(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-ptrace")
- # This supposes that the host machine is either an AMD or a X86.
- # This is deeply wrong, and should be fixed by manually loading -lunwind-PLAT (FIXME)
- if(SIMGRID_PROCESSOR_x86_64)
- SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86_64")
- else()
- SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86")
- endif()
- endif()