diff options
author | Brad King <brad.king@kitware.com> | 2021-04-20 17:52:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-26 18:27:34 (GMT) |
commit | c9aec3d4a97e8390756ea7004b9d2b065714b875 (patch) | |
tree | cc5ccdb97f5dd6cbcc08d6f1610aa71522aaeb1f /Modules/FindCurses.cmake | |
parent | 9d4a0f12fb983e88835059e9b74a18918ef08e7c (diff) | |
download | CMake-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.cmake | 2 |
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) |