/[pcre]/code/trunk/cmake/FindReadline.cmake
ViewVC logotype

Diff of /code/trunk/cmake/FindReadline.cmake

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 343 by ph10, Sun Jan 20 19:39:43 2008 UTC revision 344 by ph10, Tue Apr 22 09:16:15 2008 UTC
# Line 9  else(READLINE_INCLUDE_DIR AND READLINE_L Line 9  else(READLINE_INCLUDE_DIR AND READLINE_L
9    FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h    FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h
10      /usr/include/readline      /usr/include/readline
11    )    )
12    
13    # 2008-04-22 The next clause used to read like this:
14    #
15    #  FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
16    #        FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )
17    #        include(FindPackageHandleStandardArgs)
18    #        FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY )
19    #
20    # I was advised to modify it such that it will find an ncurses library if
21    # required, but not if one was explicitly given, that is, it allows the
22    # default to be overridden. PH
23    
24    FIND_LIBRARY(READLINE_LIBRARY NAMES readline)    FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
         FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )  
25          include(FindPackageHandleStandardArgs)          include(FindPackageHandleStandardArgs)
26          FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY )          FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY )
27    
28    MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)    MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
29  endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)  endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)

Legend:
Removed from v.343  
changed lines
  Added in v.344

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12