Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another try to fix Mac: don't guess the unwind component names so widely
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 31 Oct 2016 23:45:22 +0000 (00:45 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 31 Oct 2016 23:45:22 +0000 (00:45 +0100)
CMakeLists.txt

index a14e390..d16dc1b 100644 (file)
@@ -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")
   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)
   endif()
 else()
   if(enable_model-checking)