From: Martin Quinson Date: Thu, 25 Jan 2018 17:09:59 +0000 (+0100) Subject: Survive to when libunwind does not exist (hello again windows) X-Git-Tag: v3.19~303 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d95069d714a1f023526c856c3a4808f2a7225525?ds=sidebyside Survive to when libunwind does not exist (hello again windows) --- 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)