All: Make libedit work by default on BSDs, which usually ship libedit

This commit is contained in:
Jeffrey Pfau 2015-01-30 00:18:41 -08:00
parent 5499ec8113
commit 9088faafc4
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ endif()
add_definitions(-DBINARY_NAME="${BINARY_NAME}" -DPROJECT_NAME="${PROJECT_NAME}" -DPROJECT_VERSION="${LIB_VERSION_STRING}")
# Feature dependencies
find_feature(USE_CLI_DEBUGGER "libedit")
if(CMAKE_SYSTEM_NAME MATCHES .*BSD)
set(LIBEDIT_LIBRARIES -ledit)
else()
find_feature(USE_CLI_DEBUGGER "libedit")
endif()
find_feature(USE_FFMPEG "libavcodec;libavformat;libavresample;libavutil;libswscale")
find_feature(USE_PNG "ZLIB;PNG")
find_feature(USE_LIBZIP "libzip")