File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,6 @@ if (APPLE)
445
445
find_library (SECURITY_LIBRARY Security )
446
446
set (LLDB_ENABLE_LIBXML2 ON )
447
447
list (APPEND system_libs xml2
448
- ${CURSES_LIBRARIES}
449
448
${FOUNDATION_LIBRARY}
450
449
${CORE_FOUNDATION_LIBRARY}
451
450
${CORE_SERVICES_LIBRARY}
@@ -488,17 +487,10 @@ endif()
488
487
489
488
if (NOT LLDB_DISABLE_CURSES )
490
489
find_package (Curses REQUIRED )
491
-
492
490
find_library (CURSES_PANEL_LIBRARY NAMES panel DOC "The curses panel library" )
493
491
if (NOT CURSES_PANEL_LIBRARY )
494
492
message (FATAL_ERROR "A required curses' panel library not found." )
495
493
endif ()
496
-
497
- # Add panels to the library path
498
- set (CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_PANEL_LIBRARY} )
499
-
500
- list (APPEND system_libs ${CURSES_LIBRARIES} )
501
- include_directories (${CURSES_INCLUDE_DIR} )
502
494
endif ()
503
495
504
496
if ((CMAKE_SYSTEM_NAME MATCHES "Android" ) AND LLVM_BUILD_STATIC AND
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(LLDB_CURSES_LIBS)
10
10
set (LLDB_LIBEDIT_LIBS )
11
11
12
12
if (NOT LLDB_DISABLE_CURSES )
13
- list (APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES} )
13
+ list (APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES} ${CURSES_PANEL_LIBRARY} )
14
14
if (LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO )
15
15
list (APPEND LLDB_CURSES_LIBS ${TERMINFO_LIBS} )
16
16
endif ()
@@ -101,3 +101,7 @@ set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 4)
101
101
if (NOT LLDB_DISABLE_LIBEDIT )
102
102
target_include_directories (lldbCore PRIVATE ${libedit_INCLUDE_DIRS} )
103
103
endif ()
104
+
105
+ if (NOT LLDB_DISABLE_CURSES )
106
+ target_include_directories (lldbCore PRIVATE ${CURSES_INCLUDE_DIR} )
107
+ endif ()
You can’t perform that action at this time.
0 commit comments