summaryrefslogtreecommitdiffstats
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-20 17:52:07 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-26 18:27:34 (GMT)
commitc9aec3d4a97e8390756ea7004b9d2b065714b875 (patch)
treecc5ccdb97f5dd6cbcc08d6f1610aa71522aaeb1f /Modules/FindCurses.cmake
parent9d4a0f12fb983e88835059e9b74a18918ef08e7c (diff)
downloadCMake-c9aec3d4a97e8390756ea7004b9d2b065714b875.zip
CMake-c9aec3d4a97e8390756ea7004b9d2b065714b875.tar.gz
CMake-c9aec3d4a97e8390756ea7004b9d2b065714b875.tar.bz2
FindCurses: Do not assume ncurses is installed on CYGWIN
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 5e25deb..bfa1d6f 100644
--- a/Modules/FindCurses.cmake
+++ b/Modules/FindCurses.cmake
@@ -76,7 +76,7 @@ endif()
# 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(CURSES_NCURSES_LIBRARY AND CYGWIN)
if (CURSES_NEED_WIDE)
if(NOT EXISTS /usr/include/ncursesw/curses.h)
set(CURSES_USE_NCURSES TRUE)