From 1d64fa884e55a31d1681657137470364c50797db Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 4 May 2010 11:54:55 -0400 Subject: [PATCH] Fix FindCurses.cmake for new cygwin releases. --- Modules/FindCurses.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake index fa6819039..791e6a918 100644 --- a/Modules/FindCurses.cmake +++ b/Modules/FindCurses.cmake @@ -33,6 +33,15 @@ SET(CURSES_USE_NCURSES FALSE) IF(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY) SET(CURSES_USE_NCURSES TRUE) ENDIF(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY) +# http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html +# cygwin ncurses stopped providing curses.h symlinks see above +# message. Cygwin is an ncurses package, so force ncurses on +# cygwin if the curses.h is missing +IF(CYGWIN) + IF(NOT EXISTS /usr/include/curses.h) + SET(CURSES_USE_NCURSES TRUE) + ENDIF() +ENDIF() # Not sure the logic is correct here.