diff options
Diffstat (limited to 'Modules/FindCurses.cmake')
-rw-r--r-- | Modules/FindCurses.cmake | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Modules/FindCurses.cmake b/Modules/FindCurses.cmake index de71992..6acf421 100644 --- a/Modules/FindCurses.cmake +++ b/Modules/FindCurses.cmake @@ -32,7 +32,7 @@ set(CURSES_USE_NCURSES FALSE) if(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY) set(CURSES_USE_NCURSES TRUE) -endif(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_LIBRARY) +endif() # http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html # cygwin ncurses stopped providing curses.h symlinks see above # message. Cygwin is an ncurses package, so force ncurses on @@ -65,10 +65,10 @@ if(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES) wsyncup "" CURSES_NCURSES_HAS_WSYNCUP) if( CURSES_NCURSES_HAS_WSYNCUP) set(CURSES_USE_NCURSES TRUE) - endif( CURSES_NCURSES_HAS_WSYNCUP) - endif(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_HAS_WSYNCUP) + endif() + endif() -endif(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES) +endif() if(NOT CURSES_USE_NCURSES) @@ -83,7 +83,7 @@ if(NOT CURSES_USE_NCURSES) CACHE FILEPATH "The curses include path") set(CURSES_LIBRARY "${CURSES_CURSES_LIBRARY}" CACHE FILEPATH "The curses library") -else(NOT CURSES_USE_NCURSES) +else() # we need to find ncurses get_filename_component(_cursesLibDir "${CURSES_NCURSES_LIBRARY}" PATH) get_filename_component(_cursesParentDir "${_cursesLibDir}" PATH) @@ -109,23 +109,23 @@ else(NOT CURSES_USE_NCURSES) if(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H) get_filename_component(CURSES_NCURSES_INCLUDE_PATH "${CURSES_HAVE_NCURSES_NCURSES_H}" PATH) - endif(NOT CURSES_NCURSES_INCLUDE_PATH AND CURSES_HAVE_NCURSES_NCURSES_H) + endif() if(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY) set( FORCE_IT ) if(CURSES_INCLUDE_PATH MATCHES NOTFOUND) set(FORCE_IT FORCE) - endif(CURSES_INCLUDE_PATH MATCHES NOTFOUND) + endif() set(CURSES_INCLUDE_PATH "${CURSES_NCURSES_INCLUDE_PATH}" CACHE FILEPATH "The curses include path" ${FORCE_IT}) set( FORCE_IT) if(CURSES_LIBRARY MATCHES NOTFOUND) set(FORCE_IT FORCE) - endif(CURSES_LIBRARY MATCHES NOTFOUND) + endif() set(CURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}" CACHE FILEPATH "The curses library" ${FORCE_IT}) - endif(CURSES_NCURSES_INCLUDE_PATH AND CURSES_NCURSES_LIBRARY) + endif() -endif(NOT CURSES_USE_NCURSES) +endif() find_library(CURSES_EXTRA_LIBRARY cur_colr HINTS "${_cursesLibDir}") find_library(CURSES_EXTRA_LIBRARY cur_colr ) @@ -144,11 +144,11 @@ set(CURSES_LIBRARIES ${CURSES_LIBRARY}) if(CURSES_EXTRA_LIBRARY) set(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_EXTRA_LIBRARY}) -endif(CURSES_EXTRA_LIBRARY) +endif() if(CURSES_FORM_LIBRARY) set(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_FORM_LIBRARY}) -endif(CURSES_FORM_LIBRARY) +endif() # Proper name is *_INCLUDE_DIR set(CURSES_INCLUDE_DIR ${CURSES_INCLUDE_PATH}) |