summaryrefslogtreecommitdiff
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-20 08:39:30 -0500
committerBrad King <brad.king@kitware.com>2015-02-20 08:41:36 -0500
commitb4005a3ad9af5283f40befe7382a95c27799a90a (patch)
treed8129d72e36f83e5f05a5b2eaf29e2399e4f5b01 /Modules/FindCurses.cmake
parentda92cdab5206d0556822ee12350636300ec73160 (diff)
downloadcmake-b4005a3ad9af5283f40befe7382a95c27799a90a.tar.gz
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.
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index f94bd09ca5..e236c24455 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)