summaryrefslogtreecommitdiffstats
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2014-01-17 11:34:58 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-06 19:29:14 (GMT)
commit0e4a2c7e3251c305cc4a9a02fa32011b3c142f5a (patch)
treef0778be14c4a21b36a13accf1b31bce09a079360 /Modules/FindCurses.cmake
parentc553d68798b277506efc361f70987c81fea55fec (diff)
downloadCMake-0e4a2c7e3251c305cc4a9a02fa32011b3c142f5a.zip
CMake-0e4a2c7e3251c305cc4a9a02fa32011b3c142f5a.tar.gz
CMake-0e4a2c7e3251c305cc4a9a02fa32011b3c142f5a.tar.bz2
FindCurses: Honor CURSES_NEED_NCURSES when curses is found
Take our CURSES_USE_NCURSES code path when CURSES_NEED_NCURSES is enabled even if CURSES_CURSES_LIBRARY also happens to be found. Applied-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index 971edb7..7948551 100644
--- a/Modules/FindCurses.cmake
+++ b/Modules/FindCurses.cmake
@@ -40,7 +40,7 @@ find_library(CURSES_CURSES_LIBRARY NAMES curses )
find_library(CURSES_NCURSES_LIBRARY NAMES ncurses )
set(CURSES_USE_NCURSES FALSE)
-if(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY)
+if(CURSES_NCURSES_LIBRARY AND ((NOT CURSES_CURSES_LIBRARY) OR CURSES_NEED_NCURSES))
set(CURSES_USE_NCURSES TRUE)
endif()
# http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html