X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f4535e718abfb666917bc68cf5fdee2c6f4894f7..4b8be43e2c03939bc780b6112d841d8b839a79bb:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 72f539abfa..aa1e7538f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,7 +363,13 @@ endif() include(FindLibunwind) if(HAVE_LIBUNWIND) - SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind") + 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") set(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-ptrace") # This supposes that the host machine is either an AMD or a X86.