diff options
author | Brad King <brad.king@kitware.com> | 2020-06-16 13:08:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-16 13:08:49 (GMT) |
commit | b065d25821e5a5a6e4098af12f9fe5c310775681 (patch) | |
tree | 8ff3f001b0401d582798397d54a8d32c45c0bb47 /Modules | |
parent | f2c1debe403c4e9929a6dc2b1b6f63a7f6b052cc (diff) | |
parent | 3211e07dc6f2b52570f7b9e1034a2e0394c83862 (diff) | |
download | CMake-b065d25821e5a5a6e4098af12f9fe5c310775681.zip CMake-b065d25821e5a5a6e4098af12f9fe5c310775681.tar.gz CMake-b065d25821e5a5a6e4098af12f9fe5c310775681.tar.bz2 |
Merge topic 'FindCurses-nodelay'
3211e07dc6 FindCurses: Detect and satisfy dependency on tinfo for nodelay
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4892
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCurses.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake index ba56078..cde3a4d 100644 --- a/Modules/FindCurses.cmake +++ b/Modules/FindCurses.cmake @@ -156,7 +156,9 @@ if(CURSES_USE_NCURSES) CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}" cbreak "" CURSES_NCURSES_HAS_CBREAK) - if(NOT CURSES_NCURSES_HAS_CBREAK) + CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}" + nodelay "" CURSES_NCURSES_HAS_NODELAY) + if(NOT CURSES_NCURSES_HAS_CBREAK OR NOT CURSES_NCURSES_HAS_NODELAY) find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" HINTS "${_cursesLibDir}") find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" ) |