ENH: make this backwards compatible with older FindCurses

This commit is contained in:
Bill Hoffman 2008-03-28 10:12:01 -04:00
parent cb1cdada76
commit 7eeec39538
1 changed files with 1 additions and 2 deletions

View File

@ -50,8 +50,7 @@ ENDIF(CURSES_LIBRARY AND CURSES_NEED_NCURSES)
IF(NOT CURSES_USE_NCURSES)
FIND_FILE(CURSES_HAVE_CURSES_H curses.h )
FIND_PATH(CURSES_CURSES_H_PATH curses.h )
SET(CURSES_INCLUDE_PATH "${CURSES_CURSES_H_PATH}")
FIND_PATH(CURSES_INCLUDE_PATH curses.h )
GET_FILENAME_COMPONENT(_cursesLibDir "${CURSES_LIBRARY}" PATH)
GET_FILENAME_COMPONENT(_cursesParentDir "${_cursesLibDir}" PATH)