summaryrefslogtreecommitdiff
path: root/src/FindReadline.cmake
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-10 14:32:16 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-04-10 14:32:16 +0200
commit71d9447316133c8e447ca7538d9533e1ef61e0eb (patch)
tree2c59aca8ad2f671f458065eb8e7554a3cd9a64ed /src/FindReadline.cmake
parentdc7fe1e2405c49338e5dca5f559f17e8c5977b98 (diff)
downloadpianobar-71d9447316133c8e447ca7538d9533e1ef61e0eb.tar.gz
pianobar-71d9447316133c8e447ca7538d9533e1ef61e0eb.tar.bz2
pianobar-71d9447316133c8e447ca7538d9533e1ef61e0eb.zip
Goodbye readline
"It's too big and too slow." -- man readline
Diffstat (limited to 'src/FindReadline.cmake')
-rw-r--r--src/FindReadline.cmake37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/FindReadline.cmake b/src/FindReadline.cmake
deleted file mode 100644
index 67ea232..0000000
--- a/src/FindReadline.cmake
+++ /dev/null
@@ -1,37 +0,0 @@
-# - Find readline
-#
-# READLINE_INCLUDE_DIRS - where to find curl/curl.h, etc.
-# READLINE_LIBRARIES - List of libraries when using curl.
-# READLINE_FOUND - True if curl found.
-
-# Look for the header file.
-FIND_PATH(READLINE_INCLUDE_DIR NAMES readline/readline.h)
-MARK_AS_ADVANCED(READLINE_INCLUDE_DIR)
-
-# Look for the library.
-FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
-MARK_AS_ADVANCED(READLINE_LIBRARY)
-
-# Copy the results to the output variables.
-IF(READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
- SET(READLINE_FOUND 1)
- SET(READLINE_LIBRARIES ${READLINE_LIBRARY})
- SET(READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR})
-ELSE(READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
- SET(READLINE_FOUND 0)
- SET(READLINE_LIBRARIES)
- SET(READLINE_INCLUDE_DIRS)
-ENDIF(READLINE_INCLUDE_DIR AND READLINE_LIBRARY)
-
-# Report the results.
-IF(NOT READLINE_FOUND)
- SET(READLINE_DIR_MESSAGE
- "READLINE was not found. Make sure READLINE_LIBRARY and READLINE_INCLUDE_DIR are set.")
- IF(NOT READLINE_FIND_QUIETLY)
- MESSAGE(STATUS "${READLINE_DIR_MESSAGE}")
- ELSE(NOT READLINE_FIND_QUIETLY)
- IF(READLINE_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "${READLINE_DIR_MESSAGE}")
- ENDIF(READLINE_FIND_REQUIRED)
- ENDIF(NOT READLINE_FIND_QUIETLY)
-ENDIF(NOT READLINE_FOUND)