diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-11 14:27:58 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-11 14:36:32 -0800 |
| commit | ff82315d4ec0fc96a8c581e1c9252a15bc0adaf3 (patch) | |
| tree | c7aec3af6ff2d9943b08e1c8d68da72dfd429567 /lldb/source/Core | |
| parent | db4c7adfa365282e8cb9a067c509fa711c4b96fe (diff) | |
| download | bcm5719-llvm-ff82315d4ec0fc96a8c581e1c9252a15bc0adaf3.tar.gz bcm5719-llvm-ff82315d4ec0fc96a8c581e1c9252a15bc0adaf3.zip | |
[lldb/CMake] Simplify linking against curses
Centralize the logic to determine what libraries to link against for
curses in the CMake file where it is actually being used. Use
target_include_directories instead of include_directories.
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt index a6f7ba8dc25..0c7f3e376df 100644 --- a/lldb/source/Core/CMakeLists.txt +++ b/lldb/source/Core/CMakeLists.txt @@ -10,7 +10,7 @@ set(LLDB_CURSES_LIBS) set(LLDB_LIBEDIT_LIBS) if (NOT LLDB_DISABLE_CURSES) - list(APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES}) + list(APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES} ${CURSES_PANEL_LIBRARY}) if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO) list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIBS}) endif() @@ -101,3 +101,7 @@ set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 4) if (NOT LLDB_DISABLE_LIBEDIT) target_include_directories(lldbCore PRIVATE ${libedit_INCLUDE_DIRS}) endif() + +if (NOT LLDB_DISABLE_CURSES) + target_include_directories(lldbCore PRIVATE ${CURSES_INCLUDE_DIR}) +endif() |

