forked from OSchip/llvm-project
[lldb][CMake] Fix build for the case of custom libedit installation
This commit is contained in:
parent
8d70f3c933
commit
d32484f40c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue