"Fossies" - the Fresh Open Source Software Archive

Member "pcre-8.42/cmake/FindEditline.cmake" (31 Jan 2014, 657 Bytes) of package /linux/misc/pcre-8.42.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Modified from FindReadline.cmake (PH Feb 2012)
    2 
    3 if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
    4   set(EDITLINE_FOUND TRUE)
    5 else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
    6   FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
    7     /usr/include/editline
    8     /usr/include/edit/readline  
    9     /usr/include/readline
   10   )
   11   
   12   FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
   13   include(FindPackageHandleStandardArgs)
   14   FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
   15 
   16   MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
   17 endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)