From b4005a3ad9af5283f40befe7382a95c27799a90a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 20 Feb 2015 08:39:30 -0500 Subject: [PATCH] FindCurses: Drop unused check for cbreak in tinfo library This check was first added by commit v3.0.0-rc5~6^2 (FindCurses: Detect and satisfy ncurses dependency on tinfo, 2014-01-17), but it is not correctly conditioned on existence of the tinfo library and fails if the code path is taken but tinfo is not found. However, since commit v3.2.0-rc1~369^2 (FindCurses: Drop search for deprecated HP-UX cur_colr library, 2014-11-17) the result of the check is not used, so simply drop it. --- Modules/FindCurses.cmake | 2 -- 1 file changed, 2 deletions(-) diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake index f94bd09ca..e236c2445 100644 --- a/Modules/FindCurses.cmake +++ b/Modules/FindCurses.cmake @@ -128,8 +128,6 @@ if(CURSES_USE_NCURSES) if(NOT CURSES_NCURSES_HAS_CBREAK) find_library(CURSES_EXTRA_LIBRARY tinfo HINTS "${_cursesLibDir}") find_library(CURSES_EXTRA_LIBRARY tinfo ) - CHECK_LIBRARY_EXISTS("${CURSES_EXTRA_LIBRARY}" - cbreak "" CURSES_TINFO_HAS_CBREAK) endif() else() get_filename_component(_cursesLibDir "${CURSES_CURSES_LIBRARY}" PATH)