Browse Source

ENH: make this backwards compatible with older FindCurses

Bill Hoffman 17 years ago
parent
commit
7eeec39538
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Modules/FindCurses.cmake

+ 1 - 2
Modules/FindCurses.cmake

@@ -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)