mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
Fix the symbol stdscr not found
compilation error (#254)
The compilation fails when the symbols of terminfo are not present in the libncurses.so. This can happen when the terminfo library libtinfo.so is compiled separately. Using pkg_config is the correct approach to handle all cases.
This commit is contained in:
parent
46318cf907
commit
dbf26f0a42
@ -119,12 +119,12 @@ if(BUILD_HTTP)
|
||||
endif(BUILD_HTTP)
|
||||
|
||||
if(BUILD_NCURSES)
|
||||
check_include_files(ncurses.h NCURSES_H)
|
||||
find_library(NCURSES_LIB NAMES ncurses)
|
||||
if(NOT NCURSES_H OR NOT NCURSES_LIB)
|
||||
pkg_check_modules(NCURSES ncurses)
|
||||
if(NOT NCURSES_FOUND)
|
||||
message(FATAL_ERROR "Unable to find ncurses library")
|
||||
endif(NOT NCURSES_H OR NOT NCURSES_LIB)
|
||||
set(conky_libs ${conky_libs} ${NCURSES_LIB})
|
||||
endif(NOT NCURSES_FOUND)
|
||||
set(conky_libs ${conky_libs} ${NCURSES_LIBRARIES})
|
||||
set(conky_includes ${conky_includes} ${NCURSES_INCLUDE_DIRS})
|
||||
endif(BUILD_NCURSES)
|
||||
|
||||
if(BUILD_MYSQL)
|
||||
|
Loading…
Reference in New Issue
Block a user