summaryrefslogtreecommitdiff
path: root/deps/pcre/cmake/FindEditline.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'deps/pcre/cmake/FindEditline.cmake')
-rw-r--r--deps/pcre/cmake/FindEditline.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/pcre/cmake/FindEditline.cmake b/deps/pcre/cmake/FindEditline.cmake
new file mode 100644
index 000000000..2d0b7cc54
--- /dev/null
+++ b/deps/pcre/cmake/FindEditline.cmake
@@ -0,0 +1,17 @@
+# Modified from FindReadline.cmake (PH Feb 2012)
+
+if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
+ set(EDITLINE_FOUND TRUE)
+else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
+ FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
+ /usr/include/editline
+ /usr/include/edit/readline
+ /usr/include/readline
+ )
+
+ FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
+ include(FindPackageHandleStandardArgs)
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
+
+ MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
+endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)