From 0972a22bc9c9705c8b28e0e8ea225f6e7c95c768 Mon Sep 17 00:00:00 2001 From: hoffmann Date: Fri, 11 Jan 2013 16:39:03 +0000 Subject: [PATCH] Warn and show hint, if libiberty (needed by demangler) not found git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1996 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/util/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/util/CMakeLists.txt b/src/core/util/CMakeLists.txt index 5e93916a..6c550436 100644 --- a/src/core/util/CMakeLists.txt +++ b/src/core/util/CMakeLists.txt @@ -33,5 +33,9 @@ link_directories(${Boost_LIBRARY_DIRS}) # libiberty required by Demangler.cc: find_library(LIB_IBERTY iberty) +if(${LIB_IBERTY} STREQUAL LIB_IBERTY-NOTFOUND) + message(FATAL_ERROR "libiberty not found. Try installing binutils-dev: [ sudo aptitude install binutils-dev ]") +endif() + add_library(fail-util ${SRCS}) target_link_libraries(fail-util ${PROTOBUF_LIBRARY} ${Boost_THREAD_LIBRARY} ${LIB_IBERTY})