[Lldb-commits] [PATCH] D14529: Use library discovery for curses and panel
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 14 17:55:56 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL253151: Use library discovery for curses and panel (authored by brucem).
Changed prior to commit:
http://reviews.llvm.org/D14529?vs=39787&id=40220#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14529
Files:
lldb/trunk/cmake/LLDBDependencies.cmake
lldb/trunk/cmake/modules/LLDBConfig.cmake
Index: lldb/trunk/cmake/LLDBDependencies.cmake
===================================================================
--- lldb/trunk/cmake/LLDBDependencies.cmake
+++ lldb/trunk/cmake/LLDBDependencies.cmake
@@ -146,7 +146,7 @@
list(APPEND LLDB_SYSTEM_LIBS edit)
endif()
if (NOT LLDB_DISABLE_CURSES)
- list(APPEND LLDB_SYSTEM_LIBS panel ncurses)
+ list(APPEND LLDB_SYSTEM_LIBS ${CURSES_LIBRARIES})
if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO)
list(APPEND LLDB_SYSTEM_LIBS ${TERMINFO_LIBS})
endif()
Index: lldb/trunk/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake
@@ -309,7 +309,7 @@
find_library(DEBUG_SYMBOLS_LIBRARY DebugSymbols PATHS "/System/Library/PrivateFrameworks")
add_definitions( -DLIBXML2_DEFINED )
- list(APPEND system_libs xml2 ncurses panel)
+ list(APPEND system_libs xml2 ${CURSES_LIBRARIES})
list(APPEND system_libs ${CARBON_LIBRARY} ${FOUNDATION_LIBRARY}
${CORE_FOUNDATION_LIBRARY} ${CORE_SERVICES_LIBRARY} ${SECURITY_LIBRARY}
${DEBUG_SYMBOLS_LIBRARY})
@@ -395,3 +395,18 @@
else()
set(LLDB_CAN_USE_DEBUGSERVER 0)
endif()
+
+if (NOT LLDB_DISABLE_CURSES)
+ find_package(Curses REQUIRED)
+
+ find_library(CURSES_PANEL_LIBRARY NAMES panel DOC "The curses panel library")
+ if (NOT CURSES_PANEL_LIBRARY)
+ message(FATAL_ERROR "A required curses' panel library not found.")
+ endif ()
+
+ # Add panels to the library path
+ set (CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_PANEL_LIBRARY})
+
+ list(APPEND system_libs ${CURSES_LIBRARIES})
+ include_directories(${CURSES_INCLUDE_DIR})
+endif ()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14529.40220.patch
Type: text/x-patch
Size: 1735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151115/74576a81/attachment.bin>
More information about the lldb-commits
mailing list