summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/modules
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2018-05-22 23:24:46 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2018-05-22 23:24:46 +0000
commit9426358ea1fa84bac7b85f550f9efce12349c9da (patch)
treeddc00fda2bb1188fa7a4524544b31019f0a5fc4f /lldb/scripts/Python/modules
parent3a9e2ca05112c60fc57bf5ad416b9100be625626 (diff)
downloadbcm5719-llvm-9426358ea1fa84bac7b85f550f9efce12349c9da.tar.gz
bcm5719-llvm-9426358ea1fa84bac7b85f550f9efce12349c9da.zip
build: use cmake to find the libedit content
Use proper cmake techniques to detect where the libedit package resides. This allows for the use of libedit from an alternative location which is needed for supporting cross-compilation. llvm-svn: 333041
Diffstat (limited to 'lldb/scripts/Python/modules')
-rw-r--r--lldb/scripts/Python/modules/readline/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/scripts/Python/modules/readline/CMakeLists.txt b/lldb/scripts/Python/modules/readline/CMakeLists.txt
index 0a4376c1c32..d7b0e468fb9 100644
--- a/lldb/scripts/Python/modules/readline/CMakeLists.txt
+++ b/lldb/scripts/Python/modules/readline/CMakeLists.txt
@@ -6,9 +6,12 @@ SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-
# Build the readline python module
include_directories(${PYTHON_INCLUDE_DIR})
add_library(readline SHARED readline.cpp)
+target_include_directories(readline
+ PRIVATE
+ ${libedit_INCLUDE_DIRS})
if (NOT LLDB_DISABLE_LIBEDIT)
- target_link_libraries(readline ${PYTHON_LIBRARY} edit)
+ target_link_libraries(readline ${PYTHON_LIBRARY} ${libedit_LIBRARIES})
else()
target_link_libraries(readline ${PYTHON_LIBRARY})
endif()
OpenPOWER on IntegriCloud