Lines 30-36
Link Here
|
30 |
find_library(CURSES_NCURSES_LIBRARY NAMES ncurses ) |
30 |
find_library(CURSES_NCURSES_LIBRARY NAMES ncurses ) |
31 |
set(CURSES_USE_NCURSES FALSE) |
31 |
set(CURSES_USE_NCURSES FALSE) |
32 |
|
32 |
|
33 |
if(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY) |
33 |
if(CURSES_NCURSES_LIBRARY AND ((NOT CURSES_CURSES_LIBRARY) OR CURSES_NEED_NCURSES)) |
34 |
set(CURSES_USE_NCURSES TRUE) |
34 |
set(CURSES_USE_NCURSES TRUE) |
35 |
endif() |
35 |
endif() |
36 |
# http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html |
36 |
# http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html |
Lines 125-134
Link Here
|
125 |
CACHE FILEPATH "The curses library" ${FORCE_IT}) |
125 |
CACHE FILEPATH "The curses library" ${FORCE_IT}) |
126 |
endif() |
126 |
endif() |
127 |
|
127 |
|
|
|
128 |
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}" |
129 |
cbreak "" CURSES_NCURSES_HAS_CBREAK) |
130 |
if(NOT CURSES_NCURSES_HAS_CBREAK) |
131 |
find_library(CURSES_EXTRA_LIBRARY tinfo HINTS "${_cursesLibDir}") |
132 |
find_library(CURSES_EXTRA_LIBRARY tinfo ) |
133 |
CHECK_LIBRARY_EXISTS("${CURSES_EXTRA_LIBRARY}" |
134 |
cbreak "" CURSES_TINFO_HAS_CBREAK) |
135 |
endif() |
128 |
endif() |
136 |
endif() |
129 |
|
137 |
|
130 |
find_library(CURSES_EXTRA_LIBRARY cur_colr HINTS "${_cursesLibDir}") |
138 |
if (NOT CURSES_TINFO_HAS_CBREAK) |
131 |
find_library(CURSES_EXTRA_LIBRARY cur_colr ) |
139 |
find_library(CURSES_EXTRA_LIBRARY cur_colr HINTS "${_cursesLibDir}") |
|
|
140 |
find_library(CURSES_EXTRA_LIBRARY cur_colr ) |
141 |
endif() |
132 |
|
142 |
|
133 |
find_library(CURSES_FORM_LIBRARY form HINTS "${_cursesLibDir}") |
143 |
find_library(CURSES_FORM_LIBRARY form HINTS "${_cursesLibDir}") |
134 |
find_library(CURSES_FORM_LIBRARY form ) |
144 |
find_library(CURSES_FORM_LIBRARY form ) |
Lines 172-176
Link Here
|
172 |
CURSES_INCLUDE_DIR |
182 |
CURSES_INCLUDE_DIR |
173 |
CURSES_CURSES_HAS_WSYNCUP |
183 |
CURSES_CURSES_HAS_WSYNCUP |
174 |
CURSES_NCURSES_HAS_WSYNCUP |
184 |
CURSES_NCURSES_HAS_WSYNCUP |
|
|
185 |
CURSES_NCURSES_HAS_CBREAK |
186 |
CURSES_TINFO_HAS_CBREAK |
175 |
) |
187 |
) |
176 |
|
188 |
|