All: Fix OpenBSD build with CLI debugger

This commit is contained in:
Jeffrey Pfau 2015-03-17 22:16:57 -07:00
parent fe0af2c563
commit 22021df387
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ add_definitions(-DBINARY_NAME="${BINARY_NAME}" -DPROJECT_NAME="${PROJECT_NAME}"
set(FEATURES)
if(CMAKE_SYSTEM_NAME MATCHES .*BSD)
set(LIBEDIT_LIBRARIES -ledit)
if (CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
list(APPEND LIBEDIT_LIBRARIES -ltermcap)
endif()
else()
find_feature(USE_CLI_DEBUGGER "libedit")
endif()