[lldb][CMake] Fix build for the case of custom libedit installation

This commit is contained in:
Tatyana Krasnukha 2019-12-09 19:31:29 +03:00
parent 8d70f3c933
commit d32484f40c
1 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,10 @@ if(NOT LLDB_PYTHON_RELATIVE_PATH)
endif()
add_definitions(-DLLDB_PYTHON_RELATIVE_LIBDIR="${LLDB_PYTHON_RELATIVE_PATH}")
if (NOT LLDB_DISABLE_LIBEDIT)
list(APPEND LLDB_LIBEDIT_LIBS ${libedit_LIBRARIES})
endif()
add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN
PythonDataObjects.cpp
PythonReadline.cpp
@ -16,7 +20,14 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN
lldbInterpreter
lldbTarget
${PYTHON_LIBRARY}
${LLDB_LIBEDIT_LIBS}
LINK_COMPONENTS
Support
)
if (NOT LLDB_DISABLE_LIBEDIT)
target_include_directories(lldbPluginScriptInterpreterPython PUBLIC
${libedit_INCLUDE_DIRS}
)
endif()