[docs] Update HowToReleaseLLVM documentation.
[llvm-project.git] / lldb / cmake / modules / FindCursesAndPanel.cmake
blobaaadf214bf54b6fc9897eae632e069f0603437ac
1 #.rst:
2 # FindCursesAndPanel
3 # -----------
5 # Find the curses and panel library as a whole.
7 if(CURSES_INCLUDE_DIRS AND CURSES_LIBRARIES AND PANEL_LIBRARIES)
8   set(CURSESANDPANEL_FOUND TRUE)
9 else()
10   find_package(Curses QUIET)
11   find_library(PANEL_LIBRARIES NAMES panel DOC "The curses panel library" QUIET)
12   include(FindPackageHandleStandardArgs)
13   find_package_handle_standard_args(CursesAndPanel
14                                     FOUND_VAR
15                                       CURSESANDPANEL_FOUND
16                                     REQUIRED_VARS
17                                       CURSES_INCLUDE_DIRS
18                                       CURSES_LIBRARIES
19                                       PANEL_LIBRARIES)
20   if(CURSES_FOUND AND PANEL_LIBRARIES)
21     mark_as_advanced(CURSES_INCLUDE_DIRS CURSES_LIBRARIES PANEL_LIBRARIES)
22   endif()
23 endif()