Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
68c7b411
Commit
68c7b411
authored
Nov 21, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write some helpful messages to assist user, when prerequisite software is not found
(ncurses-devel or bison)
parent
39641dfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
cmake/bison.cmake
cmake/bison.cmake
+13
-3
cmake/readline.cmake
cmake/readline.cmake
+8
-1
No files found.
cmake/bison.cmake
View file @
68c7b411
...
...
@@ -37,13 +37,13 @@ MACRO (RUN_BISON input_yy output_cc output_h)
IF
(
BISON_TOO_OLD
)
IF
(
EXISTS
${
output_cc
}
AND EXISTS
${
output_h
}
)
SET
(
BISON_USABLE FALSE
)
ENDIF
()
ENDIF
()
ENDIF
()
IF
(
BISON_USABLE
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
output_cc
}
${
output_h
}
COMMAND
bison
-y -p MYSQL
COMMAND
${
BISON_EXECUTABLE
}
-y -p MYSQL
--output=
${
output_cc
}
--defines=
${
output_h
}
${
input_yy
}
...
...
@@ -58,7 +58,17 @@ MACRO (RUN_BISON input_yy output_cc output_h)
ENDIF
()
ELSE
()
# Output files are missing, bail out.
MESSAGE
(
FATAL_ERROR
"Please install bison."
)
SET
(
ERRMSG
"Bison (GNU parser generator) is required to build MySQL."
"Please install bison."
)
IF
(
WIN32
)
SET
(
ERRMSG
${
ERRMSG
}
"You can download bison from http://gnuwin32.sourceforge.net/packages/bison.htm "
"Choose 'Complete package, except sources' installation. We recommend to "
"install bison into a directory without spaces, e.g C:
\\
GnuWin32."
)
ENDIF
()
MESSAGE
(
FATAL_ERROR
${
ERRMSG
}
)
ENDIF
()
ENDIF
()
ENDMACRO
()
cmake/readline.cmake
View file @
68c7b411
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment