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
This commit is contained in:
@ -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})
|
||||
|
||||
Reference in New Issue
Block a user