| 9 |
FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h |
FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h |
| 10 |
/usr/include/readline |
/usr/include/readline |
| 11 |
) |
) |
| 12 |
|
|
| 13 |
|
# 2008-04-22 The next clause used to read like this: |
| 14 |
|
# |
| 15 |
|
# FIND_LIBRARY(READLINE_LIBRARY NAMES readline) |
| 16 |
|
# FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses ) |
| 17 |
|
# include(FindPackageHandleStandardArgs) |
| 18 |
|
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY ) |
| 19 |
|
# |
| 20 |
|
# I was advised to modify it such that it will find an ncurses library if |
| 21 |
|
# required, but not if one was explicitly given, that is, it allows the |
| 22 |
|
# default to be overridden. PH |
| 23 |
|
|
| 24 |
FIND_LIBRARY(READLINE_LIBRARY NAMES readline) |
FIND_LIBRARY(READLINE_LIBRARY NAMES readline) |
|
FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses ) |
|
| 25 |
include(FindPackageHandleStandardArgs) |
include(FindPackageHandleStandardArgs) |
| 26 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY ) |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY ) |
| 27 |
|
|
| 28 |
MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY) |
MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY) |
| 29 |
endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY) |
endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY) |