summaryrefslogtreecommitdiffstats
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-05-04 15:54:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-05-04 15:54:55 (GMT)
commit1d64fa884e55a31d1681657137470364c50797db (patch)
treed163360bc56721d1c684a70e58f8581d563237f3 /Modules/FindCurses.cmake
parent5fd87f6d1a5df1fb153f054f0101cf67bdea43b6 (diff)
downloadCMake-1d64fa884e55a31d1681657137470364c50797db.zip
CMake-1d64fa884e55a31d1681657137470364c50797db.tar.gz
CMake-1d64fa884e55a31d1681657137470364c50797db.tar.bz2
Fix FindCurses.cmake for new cygwin releases.
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index fa68190..791e6a9 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.