From: Martin Quinson Date: Mon, 31 Oct 2016 23:45:22 +0000 (+0100) Subject: another try to fix Mac: don't guess the unwind component names so widely X-Git-Tag: v3_14~262 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b62758fb895c6e9b4473c7289d8f3811b5e900ad another try to fix Mac: don't guess the unwind component names so widely --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a14e39001b..d16dc1b652 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -366,13 +366,13 @@ if(HAVE_LIBUNWIND) SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind") if("${CMAKE_SYSTEM}" MATCHES "Linux") set(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-ptrace") - endif() - # 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(PROCESSOR_x86_64) - SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86_64") - else() - SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86") + # 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(PROCESSOR_x86_64) + SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86_64") + else() + SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-x86") + endif() endif() else() if(enable_model-checking)