Sha256: 055e1df8bd29e6837d8ebb8c15dd5dcb28c88e23aabda8538b76a249dff829b0

Contents?: true

Size: 1.26 KB

Versions: 27

Compression:

Stored size: 1.26 KB

Contents

# from http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/FindReadline.cmake
# http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/COPYING-CMAKE-SCRIPTS
# --> BSD licensed
#
# GNU Readline library finder
if(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
  set(READLINE_FOUND TRUE)
else(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
  FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h
    /usr/include/readline
  )
  
# 2008-04-22 The next clause used to read like this:
#
#  FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
#        FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )
#        include(FindPackageHandleStandardArgs)
#        FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY )
#
# I was advised to modify it such that it will find an ncurses library if
# required, but not if one was explicitly given, that is, it allows the
# default to be overridden. PH 

  FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
        include(FindPackageHandleStandardArgs)
        FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY )

  MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
rugged-1.9.0 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.7.2 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.6.5 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.7.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.6.3 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.6.2 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.5.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.4.5 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.5.0.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.5.0 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.3.2.3 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.4.4 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.3.2.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.4.3 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.3.2 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.4.2 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.3.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.3.0 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.2.0 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake
rugged-1.1.1 vendor/libgit2/deps/pcre/cmake/FindReadline.cmake