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
b2dd88f0
Commit
b2dd88f0
authored
Feb 12, 2019
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake/wsrep: allow disabling -DWITH_WSREP=OFF
parent
9f56dd73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
cmake/wsrep.cmake
cmake/wsrep.cmake
+10
-10
No files found.
cmake/wsrep.cmake
View file @
b2dd88f0
...
...
@@ -28,20 +28,20 @@ OPTION(WITH_WSREP_ALL
"Build all components of WSREP (unit tests, sample programs)"
OFF
)
# Set the patch version
SET
(
WSREP_PATCH_VERSION
"22"
)
IF
(
WITH_WSREP
)
# Set the patch version
SET
(
WSREP_PATCH_VERSION
"22"
)
# Obtain wsrep API version
FILE
(
STRINGS
"
${
CMAKE_SOURCE_DIR
}
/wsrep-lib/wsrep-API/v26/wsrep_api.h"
WSREP_API_VERSION
LIMIT_COUNT 1 REGEX
"WSREP_INTERFACE_VERSION"
)
STRING
(
REGEX MATCH
"([0-9]+)"
WSREP_API_VERSION
"
${
WSREP_API_VERSION
}
"
)
# Obtain wsrep API version
FILE
(
STRINGS
"
${
CMAKE_SOURCE_DIR
}
/wsrep-lib/wsrep-API/v26/wsrep_api.h"
WSREP_API_VERSION
LIMIT_COUNT 1 REGEX
"WSREP_INTERFACE_VERSION"
)
STRING
(
REGEX MATCH
"([0-9]+)"
WSREP_API_VERSION
"
${
WSREP_API_VERSION
}
"
)
SET
(
WSREP_VERSION
"
${
WSREP_API_VERSION
}
.
${
WSREP_PATCH_VERSION
}
"
CACHE INTERNAL
"WSREP version"
)
SET
(
WSREP_VERSION
"
${
WSREP_API_VERSION
}
.
${
WSREP_PATCH_VERSION
}
"
CACHE INTERNAL
"WSREP version"
)
SET
(
WSREP_PROC_INFO
${
WITH_WSREP
}
)
SET
(
WSREP_PROC_INFO
${
WITH_WSREP
}
)
IF
(
WITH_WSREP
)
SET
(
WSREP_PATCH_VERSION
"wsrep_
${
WSREP_VERSION
}
"
)
if
(
NOT WITH_WSREP_ALL
)
SET
(
WSREP_LIB_WITH_UNIT_TESTS OFF CACHE BOOL
...
...
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