summaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
authorTatyana Krasnukha <tatyana@synopsys.com>2018-09-21 18:34:41 +0000
committerTatyana Krasnukha <tatyana@synopsys.com>2018-09-21 18:34:41 +0000
commit2f1dfba74d663f414c6426d28d0c09299c470187 (patch)
treee4ae48103c68b78c04afb277ed37b98e9dcdba50 /lldb
parent8f7d4962ca61796e57314b6d6f5c9803e1add978 (diff)
build: add libedit to include paths
Differential Revision: https://reviews.llvm.org/D51999
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Core/CMakeLists.txt4
-rw-r--r--lldb/source/Host/CMakeLists.txt4
-rw-r--r--lldb/source/Interpreter/CMakeLists.txt4
3 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt
index b746939213f..d50a1ed78c7 100644
--- a/lldb/source/Core/CMakeLists.txt
+++ b/lldb/source/Core/CMakeLists.txt
@@ -80,3 +80,7 @@ add_lldb_library(lldbCore
# Needed to properly resolve references in a debug build.
# TODO: Remove once we have better layering
set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 4)
+
+if (NOT LLDB_DISABLE_LIBEDIT)
+ target_include_directories(lldbCore PRIVATE ${libedit_INCLUDE_DIRS})
+endif()
diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt
index 5a92447edf3..30fb3a69741 100644
--- a/lldb/source/Host/CMakeLists.txt
+++ b/lldb/source/Host/CMakeLists.txt
@@ -174,3 +174,7 @@ add_lldb_library(lldbHost
Object
Support
)
+
+if (NOT LLDB_DISABLE_LIBEDIT)
+ target_include_directories(lldbHost PUBLIC ${libedit_INCLUDE_DIRS})
+endif()
diff --git a/lldb/source/Interpreter/CMakeLists.txt b/lldb/source/Interpreter/CMakeLists.txt
index aaa335af39f..f8fed8b4ac1 100644
--- a/lldb/source/Interpreter/CMakeLists.txt
+++ b/lldb/source/Interpreter/CMakeLists.txt
@@ -55,3 +55,7 @@ add_lldb_library(lldbInterpreter
LINK_COMPONENTS
Support
)
+
+if (NOT LLDB_DISABLE_LIBEDIT)
+ target_include_directories(lldbInterpreter PRIVATE ${libedit_INCLUDE_DIRS})
+endif() \ No newline at end of file