all repos — mgba @ 9088faafc4ae3921166b0eff832009e336bcd174

mGBA Game Boy Advance Emulator

All: Make libedit work by default on BSDs, which usually ship libedit
Jeffrey Pfau jeffrey@endrift.com
Fri, 30 Jan 2015 00:18:41 -0800
commit

9088faafc4ae3921166b0eff832009e336bcd174

parent

5499ec811317f8a6b16d738c2c3d12739bccc94f

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -89,7 +89,11 @@

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")