Annotation of embedaddon/pcre/cmake/FindEditline.cmake, revision 1.1.1.1
1.1 misho 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)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>