From 7eeec39538ce516b9ee380445a654f2e54c67431 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 28 Mar 2008 10:12:01 -0400 Subject: [PATCH] ENH: make this backwards compatible with older FindCurses --- Modules/FindCurses.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake index 1dcf70b15..cd170c126 100644 --- a/Modules/FindCurses.cmake +++ b/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)