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
73fccf95
Commit
73fccf95
authored
Jan 06, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
52aa96d4
af59335f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cmake/mysql_version.cmake
cmake/mysql_version.cmake
+3
-1
No files found.
cmake/mysql_version.cmake
View file @
73fccf95
...
...
@@ -55,10 +55,12 @@ MACRO(GET_MYSQL_VERSION)
SET
(
VERSION
${
VERSION_STRING
}
)
# Remove trailing (non-numeric) part of the version string
STRING
(
REGEX REPLACE
"[^
\\
.0-9].*"
""
VERSION_STRING
${
VERSION_STRING
}
)
STRING
(
REGEX REPLACE
"([0-9]+)
\\
.[0-9]+
\\
.[0-9]+"
"
\\
1"
MAJOR_VERSION
"
${
VERSION_STRING
}
"
)
STRING
(
REGEX REPLACE
"[0-9]+
\\
.([0-9]+)
\\
.[0-9]+"
"
\\
1"
MINOR_VERSION
"
${
VERSION_STRING
}
"
)
STRING
(
REGEX REPLACE
"[0-9]+
\\
.[0-9]+
\\
.([0-9]+)"
"
\\
1"
PATCH
"
${
VERSION_STRING
}
"
)
SET
(
MYSQL_BASE_VERSION
"
${
MAJOR_VERSION
}
.
${
MINOR_VERSION
}
"
CACHE INTERNAL
"MySQL Base version"
)
SET
(
MYSQL_NO_DASH_VERSION
"
${
MAJOR_VERSION
}
.
${
MINOR_VERSION
}
.
${
PATCH
}
"
)
MATH
(
EXPR MYSQL_VERSION_ID
"10000*
${
MAJOR_VERSION
}
+ 100*
${
MINOR_VERSION
}
+
${
PATCH
}
"
)
...
...
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