Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake: fix a typo that does not break as it should on my machine
[simgrid.git] / tools / cmake / Modules / FindLibunwind.cmake
index 7912768..f0d4786 100644 (file)
@@ -39,10 +39,10 @@ set(LIBUNWIND_FOUND "1")
 
 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")
-  message(FATAL_ERROR "libunwind.h was found, but unwind.h was not found in that directory.")
+elseif(NOT EXISTS "${LIBUNWIND_INCLUDE_DIR}/unwind.h")
+  message(WARNING "libunwind.h was found, but unwind.h was not found in that directory.")
   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(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)