From d95069d714a1f023526c856c3a4808f2a7225525 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 25 Jan 2018 18:09:59 +0100 Subject: [PATCH] Survive to when libunwind does not exist (hello again windows) --- tools/cmake/Modules/FindLibunwind.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cmake/Modules/FindLibunwind.cmake b/tools/cmake/Modules/FindLibunwind.cmake index 79127687b7..ae9b5af0f8 100644 --- a/tools/cmake/Modules/FindLibunwind.cmake +++ b/tools/cmake/Modules/FindLibunwind.cmake @@ -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.") + 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) -- 2.20.1