Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Survive to when libunwind does not exist (hello again windows)
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 25 Jan 2018 17:09:59 +0000 (18:09 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 25 Jan 2018 17:09:59 +0000 (18:09 +0100)
tools/cmake/Modules/FindLibunwind.cmake

index 7912768..ae9b5af 100644 (file)
@@ -39,10 +39,10 @@ set(LIBUNWIND_FOUND "1")
 
 FIND_PATH(LIBUNWIND_INCLUDE_DIR libunwind.h)
 if(NOT LIBUNWIND_INCLUDE_DIR)
 
 FIND_PATH(LIBUNWIND_INCLUDE_DIR libunwind.h)
 if(NOT LIBUNWIND_INCLUDE_DIR)
-  message(FATAL_ERROR "failed to find libunwind.h")
+  message(WARNING "failed to find libunwind.h")
   set(LIBUNWIND_FOUND "")
 elif(NOT EXISTS "${LIBUNWIND_INCLUDE_DIR}/unwind.h")
   set(LIBUNWIND_FOUND "")
 elif(NOT EXISTS "${LIBUNWIND_INCLUDE_DIR}/unwind.h")
-  message(FATAL_ERROR "libunwind.h was found, but unwind.h was not found in that directory.")
+  message(WARNING "libunwind.h was found, but unwind.h was not found in that directory.")
   set(LIBUNWIND_FOUND "")
   SET(LIBUNWIND_INCLUDE_DIR "")
 endif()
   set(LIBUNWIND_FOUND "")
   SET(LIBUNWIND_INCLUDE_DIR "")
 endif()
@@ -52,7 +52,7 @@ if (LIBUNWIND_GENERIC_LIBRARY)
   MESSAGE(STATUS "Found libunwind library: ${LIBUNWIND_GENERIC_LIBRARY}")
 else()
   set(LIBUNWIND_FOUND "")
   MESSAGE(STATUS "Found libunwind library: ${LIBUNWIND_GENERIC_LIBRARY}")
 else()
   set(LIBUNWIND_FOUND "")
-  MESSAGE(FATAL_ERROR "failed to find unwind generic library")
+  MESSAGE(WARNING "failed to find unwind generic library")
 endif ()
 SET(LIBUNWIND_LIBRARIES ${LIBUNWIND_GENERIC_LIBRARY})
 unset(LIBUNWIND_GENERIC_LIBRARY)
 endif ()
 SET(LIBUNWIND_LIBRARIES ${LIBUNWIND_GENERIC_LIBRARY})
 unset(LIBUNWIND_GENERIC_LIBRARY)