Skip to content

Commit

Permalink
Update error message for missing libiberty
Browse files Browse the repository at this point in the history
In Ubuntu 14.04, libiberty has been split out into its own package.
  • Loading branch information
tstarling committed Jan 31, 2014
1 parent c4499f2 commit 8f08eab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMake/HPHPFindLibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,14 @@ if (LINUX OR APPLE)
endif()

FIND_LIBRARY (BFD_LIB bfd)
FIND_LIBRARY (BINUTIL_LIB iberty)
FIND_LIBRARY (LIBIBERTY_LIB iberty)

if (NOT BFD_LIB)
message(FATAL_ERROR "You need to install binutils")
endif()

if (NOT BINUTIL_LIB)
message(FATAL_ERROR "You need to install binutils")
if (NOT LIBIBERTY_LIB)
message(FATAL_ERROR "You need to install libiberty (usually bundled with binutils)")
endif()

if (FREEBSD)
Expand Down Expand Up @@ -474,7 +474,7 @@ if (APPLE)
endif()

target_link_libraries(${target} ${BFD_LIB})
target_link_libraries(${target} ${BINUTIL_LIB})
target_link_libraries(${target} ${LIBIBERTY_LIB})
if (${LIBPTHREAD_LIBRARIES})
target_link_libraries(${target} ${LIBPTHREAD_LIBRARIES})
endif()
Expand Down

0 comments on commit 8f08eab

Please sign in to comment.