Skip to content

Commit

Permalink
win32: fix cmake error while looking for curses.
Browse files Browse the repository at this point in the history
  • Loading branch information
phamelin committed Feb 8, 2011
1 parent 47f445b commit 474d92a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/check_depend.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ OPTION( BUILD_TESTS "Turn me off to disable compilation of all tests" OFF )
# Curse is not a readline dependency on win32 platform
if(NOT WIN32)
find_package( Curses )
endif()

IF ( CURSES_INCLUDE_DIR )
IF ( CURSES_INCLUDE_DIR )
MESSAGE("-- Looking for curses implementation - found libncurses")
SET( CURSES 1 CACHE INTERNAL "libncurses" )
SET( CURSES_IMPL ncurses)
ELSE ( CURSES_INCLUDE_DIR )
ELSE ( CURSES_INCLUDE_DIR )
FIND_PATH( CURSES_INCLUDE_DIR termcap.h )
IF ( CURSES_INCLUDE_DIR )
MESSAGE("-- Looking for curses implementation - found termcap")
Expand All @@ -47,7 +46,9 @@ ELSE ( CURSES_INCLUDE_DIR )
MESSAGE("-- Looking for curses implementation - not found")
SET( CURSES 0 CACHE INTERNAL "libncurses" )
ENDIF ( CURSES_INCLUDE_DIR )
ENDIF ( CURSES_INCLUDE_DIR )
ENDIF ( CURSES_INCLUDE_DIR )

endif()

FIND_PATH( READLINE_H readline/readline.h )
IF ( READLINE_H )
Expand Down

0 comments on commit 474d92a

Please sign in to comment.