summaryrefslogtreecommitdiffstats
path: root/Modules/FindCurses.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-28 14:12:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-28 14:12:01 (GMT)
commit7eeec39538ce516b9ee380445a654f2e54c67431 (patch)
treeb91f051a0462994f20c653887798ac02e9751246 /Modules/FindCurses.cmake
parentcb1cdada76c6ac8535fdab52bae5b63c51029eae (diff)
downloadCMake-7eeec39538ce516b9ee380445a654f2e54c67431.zip
CMake-7eeec39538ce516b9ee380445a654f2e54c67431.tar.gz
CMake-7eeec39538ce516b9ee380445a654f2e54c67431.tar.bz2
ENH: make this backwards compatible with older FindCurses
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r--Modules/FindCurses.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake
index 1dcf70b..cd170c1 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)