diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-11-21 01:56:58 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-11-21 01:56:58 +0100 |
commit | 68c7b41189a9b4505cc5c957608691788cae9538 (patch) | |
tree | 044e86cd6fcfd322dc6802ea32e1aa01fdb5df3e /cmake/readline.cmake | |
parent | 39641dfd65fd5c8e894a04c744b7a7f0b0e5e655 (diff) | |
download | mariadb-git-68c7b41189a9b4505cc5c957608691788cae9538.tar.gz |
Write some helpful messages to assist user, when prerequisite software is not found
(ncurses-devel or bison)
Diffstat (limited to 'cmake/readline.cmake')
-rw-r--r-- | cmake/readline.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/readline.cmake b/cmake/readline.cmake index 7661f12cce2..44be0c2196e 100644 --- a/cmake/readline.cmake +++ b/cmake/readline.cmake @@ -82,7 +82,14 @@ MACRO (FIND_CURSES) INCLUDE (FindCurses) MARK_AS_ADVANCED(CURSES_CURSES_H_PATH CURSES_FORM_LIBRARY CURSES_HAVE_CURSES_H) IF(NOT CURSES_FOUND) - MESSAGE(FATAL_ERROR "curses library not found") + SET(ERRORMSG "Curses library not found. Please install appropriate package, + remove CMakeCache.txt and rerun cmake.") + IF(CMAKE_SYSTEM_NAME MATCHES "Linux") + SET(ERRORMSG ${ERRORMSG} + "On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates " + "it is ncurses-devel.") + ENDIF() + MESSAGE(FATAL_ERROR ${ERRORMSG}) ENDIF() IF(CURSES_HAVE_CURSES_H) |