--- conky-1.10.1/cmake/ConkyPlatformChecks.cmake 2015-11-18 16:47:45.000000000 +0100 +++ conky-1.10.1-patched/cmake/ConkyPlatformChecks.cmake 2016-05-10 08:56:44.344799333 +0200 @@ -119,12 +119,12 @@ 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)