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
b62f25c6
Commit
b62f25c6
authored
Sep 10, 2021
by
Vladislav Vaintroub
Committed by
Vladislav Vaintroub
Jan 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-26579 fixup
parent
0f59810b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
cmake/mysql_version.cmake
cmake/mysql_version.cmake
+3
-5
win/packaging/create_msi.cmake
win/packaging/create_msi.cmake
+2
-2
No files found.
cmake/mysql_version.cmake
View file @
b62f25c6
...
...
@@ -50,13 +50,15 @@ MACRO(GET_MYSQL_VERSION)
MYSQL_GET_CONFIG_VALUE
(
"MYSQL_VERSION_EXTRA"
EXTRA_VERSION
)
MYSQL_GET_CONFIG_VALUE
(
"SERVER_MATURITY"
SERVER_MATURITY
)
IF
(
NOT
"
${
MAJOR_VERSION
}
"
MATCHES
"[0-9]+"
OR
IF
(
NOT
"
${
MAJOR_VERSION
}
"
MATCHES
"[0-9]+"
OR
NOT
"
${
MINOR_VERSION
}
"
MATCHES
"[0-9]+"
OR
NOT
"
${
PATCH_VERSION
}
"
MATCHES
"[0-9]+"
)
MESSAGE
(
FATAL_ERROR
"VERSION file cannot be parsed."
)
ENDIF
()
IF
((
NOT TINY_VERSION
)
AND
(
EXTRA_VERSION MATCHES
"[
\\
-][0-9]+"
))
STRING
(
REPLACE
"-"
""
TINY_VERSION
"
${
EXTRA_VERSION
}
"
)
ELSE
()
SET
(
TINY_VERSION
"0"
)
ENDIF
()
SET
(
VERSION
"
${
MAJOR_VERSION
}
.
${
MINOR_VERSION
}
.
${
PATCH_VERSION
}${
EXTRA_VERSION
}
"
)
MESSAGE
(
STATUS
"MariaDB
${
VERSION
}
"
)
...
...
@@ -120,10 +122,6 @@ ENDIF()
IF
(
MSVC
)
# Tiny version is used to identify the build, it can be set with cmake -DTINY_VERSION=<number>
# to bzr revno for example (in the CI builds)
IF
(
NOT TINY_VERSION
)
SET
(
TINY_VERSION
"0"
)
ENDIF
()
GET_FILENAME_COMPONENT
(
MYSQL_CMAKE_SCRIPT_DIR
${
CMAKE_CURRENT_LIST_FILE
}
PATH
)
SET
(
FILETYPE VFT_APP
)
...
...
win/packaging/create_msi.cmake
View file @
b62f25c6
...
...
@@ -249,8 +249,8 @@ FUNCTION(TRAVERSE_FILES dir topdir file file_comp dir_root)
SET
(
NONEXEFILES
)
FOREACH
(
v MAJOR_VERSION MINOR_VERSION PATCH_VERSION TINY_VERSION
)
IF
(
NOT
${
v
}
)
MESSAGE
(
FATAL_ERROR
"
${
v
}
is not
set
"
)
IF
(
NOT
DEFINED
${
v
}
)
MESSAGE
(
FATAL_ERROR
"
${
v
}
is not
defined
"
)
ENDIF
()
ENDFOREACH
()
SET
(
default_version
"
${
MAJOR_VERSION
}
.
${
MINOR_VERSION
}
.
${
PATCH_VERSION
}
.
${
TINY_VERSION
}
"
)
...
...
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