diff options
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt index 6febb038578..5be6934c191 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt @@ -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() |