diff options
author | Tatyana Krasnukha <tatyana@synopsys.com> | 2019-12-09 19:31:29 +0300 |
---|---|---|
committer | Tatyana Krasnukha <tatyana@synopsys.com> | 2019-12-09 20:23:05 +0300 |
commit | d32484f40cbe1249643f024e3a10c4e3c50ff837 (patch) | |
tree | b7335671a8acae79c81d70b09ea99d6e22d3225d /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 8d70f3c933a5b81a87a5ab1af0e3e98ee2cd7c67 (diff) | |
download | bcm5719-llvm-d32484f40cbe1249643f024e3a10c4e3c50ff837.tar.gz bcm5719-llvm-d32484f40cbe1249643f024e3a10c4e3c50ff837.zip |
[lldb][CMake] Fix build for the case of custom libedit installation
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-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() |