1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Use FindCurses instead of pkg_check_modules.

This should resolve #217.
This commit is contained in:
Brenden Matthews 2018-01-23 12:56:06 -05:00
parent 29f1c05fbe
commit abd0be51a0
No known key found for this signature in database
GPG Key ID: 60FBD122E62B0D30

View File

@ -129,12 +129,12 @@ if(BUILD_HTTP)
endif(BUILD_HTTP)
if(BUILD_NCURSES)
pkg_check_modules(NCURSES ncurses)
if(NOT NCURSES_FOUND)
include(FindCurses)
if(NOT CURSES_FOUND)
message(FATAL_ERROR "Unable to find ncurses library")
endif(NOT NCURSES_FOUND)
set(conky_libs ${conky_libs} ${NCURSES_LIBRARIES})
set(conky_includes ${conky_includes} ${NCURSES_INCLUDE_DIRS})
endif(NOT CURSES_FOUND)
set(conky_libs ${conky_libs} ${CURSES_LIBRARIES})
set(conky_includes ${conky_includes} ${CURSES_INCLUDE_DIR})
endif(BUILD_NCURSES)
if(BUILD_MYSQL)