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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
03bb7032
Commit
03bb7032
authored
Mar 24, 2010
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to add support for MYSQL_U_SCORE_VERSION and MYSQL_COPYRIGHT_YEAR.
parent
aa917229
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
cmake/mysql_version.cmake
cmake/mysql_version.cmake
+11
-0
No files found.
cmake/mysql_version.cmake
View file @
03bb7032
...
...
@@ -55,6 +55,7 @@ MACRO(GET_MYSQL_VERSION)
ENDIF
()
SET
(
VERSION
${
VERSION_STRING
}
)
STRING
(
REPLACE
"-"
"_"
MYSQL_U_SCORE_VERSION
"
${
VERSION_STRING
}
"
)
# Remove trailing (non-numeric) part of the version string
STRING
(
REGEX REPLACE
"[^
\\
.0-9].*"
""
VERSION_STRING
${
VERSION_STRING
}
)
...
...
@@ -115,6 +116,16 @@ INCLUDE(cpack_source_ignore_files)
SET
(
PRODUCTNAME
"MySQL Server"
)
SET
(
COMPANYNAME
${
CPACK_PACKAGE_VENDOR
}
)
# Windows 'date' command has unpredictable output, so cannot rely on it to
# set MYSQL_COPYRIGHT_YEAR - if someone finds a portable way to do so then
# it might be useful
#IF (WIN32)
# EXECUTE_PROCESS(COMMAND "date" "/T" OUTPUT_VARIABLE TMP_DATE)
# STRING(REGEX REPLACE "(..)/(..)/..(..).*" "\\3\\2\\1" MYSQL_COPYRIGHT_YEAR ${TMP_DATE})
IF
(
UNIX
)
EXECUTE_PROCESS
(
COMMAND
"date"
"+%Y"
OUTPUT_VARIABLE MYSQL_COPYRIGHT_YEAR
)
ENDIF
()
# Add version information to the exe and dll files
# Refer to http://msdn.microsoft.com/en-us/library/aa381058(VS.85).aspx
# for more info.
...
...
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