Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
b3c59ff4
Commit
b3c59ff4
authored
Apr 15, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comments and store versions as cache variables
parent
a32c7fbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
CMakeLists.txt
CMakeLists.txt
+10
-7
configure
configure
+7
-7
No files found.
CMakeLists.txt
View file @
b3c59ff4
...
@@ -194,21 +194,24 @@ endif()
...
@@ -194,21 +194,24 @@ endif()
# -- get CAF version -----------------------------------------------------------
# -- get CAF version -----------------------------------------------------------
#
get line containing the version from config.hpp and extract version number
#
Get line containing the version from config.hpp and extract version number.
file
(
READ
"libcaf_core/caf/config.hpp"
CAF_CONFIG_HPP
)
file
(
READ
"libcaf_core/caf/config.hpp"
CAF_CONFIG_HPP
)
string
(
REGEX MATCH
"#define CAF_VERSION [0-9]+"
CAF_VERSION_LINE
"
${
CAF_CONFIG_HPP
}
"
)
string
(
REGEX MATCH
"#define CAF_VERSION [0-9]+"
CAF_VERSION_LINE
"
${
CAF_CONFIG_HPP
}
"
)
string
(
REGEX MATCH
"[0-9]+"
CAF_VERSION_INT
"
${
CAF_VERSION_LINE
}
"
)
string
(
REGEX MATCH
"[0-9]+"
CAF_VERSION_INT
"
${
CAF_VERSION_LINE
}
"
)
#
calculate major, minor, and patch version
#
Calculate major, minor, and patch version.
math
(
EXPR CAF_VERSION_MAJOR
"
${
CAF_VERSION_INT
}
/ 10000"
)
math
(
EXPR CAF_VERSION_MAJOR
"
${
CAF_VERSION_INT
}
/ 10000"
)
math
(
EXPR CAF_VERSION_MINOR
"(
${
CAF_VERSION_INT
}
/ 100) % 100"
)
math
(
EXPR CAF_VERSION_MINOR
"(
${
CAF_VERSION_INT
}
/ 100) % 100"
)
math
(
EXPR CAF_VERSION_PATCH
"
${
CAF_VERSION_INT
}
% 100"
)
math
(
EXPR CAF_VERSION_PATCH
"
${
CAF_VERSION_INT
}
% 100"
)
# create full version string
# Create full version string.
set
(
CAF_VERSION
"
${
CAF_VERSION_MAJOR
}
.
${
CAF_VERSION_MINOR
}
.
${
CAF_VERSION_PATCH
}
"
)
set
(
CAF_VERSION
"
${
CAF_VERSION_MAJOR
}
.
${
CAF_VERSION_MINOR
}
.
${
CAF_VERSION_PATCH
}
"
# set the library version for our shared library targets
CACHE INTERNAL
"The full CAF version string"
)
# Set the library version for our shared library targets.
if
(
CMAKE_HOST_SYSTEM_NAME MATCHES
"OpenBSD"
)
if
(
CMAKE_HOST_SYSTEM_NAME MATCHES
"OpenBSD"
)
set
(
CAF_LIB_VERSION
"
${
CAF_VERSION_MAJOR
}
.
${
CAF_VERSION_MINOR
}
"
)
set
(
CAF_LIB_VERSION
"
${
CAF_VERSION_MAJOR
}
.
${
CAF_VERSION_MINOR
}
"
CACHE INTERNAL
"The version string used for shared library objects"
)
else
()
else
()
set
(
CAF_LIB_VERSION
"
${
CAF_VERSION
}
"
)
set
(
CAF_LIB_VERSION
"
${
CAF_VERSION
}
"
CACHE INTERNAL
"The version string used for shared library objects"
)
endif
()
endif
()
# -- generate build config header ----------------------------------------------
# -- generate build config header ----------------------------------------------
...
...
configure
View file @
b3c59ff4
...
@@ -28,13 +28,13 @@ Locating packages in non-standard locations:
...
@@ -28,13 +28,13 @@ Locating packages in non-standard locations:
Debugging options:
Debugging options:
--log-level=STRING build with debugging output, possible values:
--log-level=STRING build with debugging output, possible values:
- ERROR
- ERROR
- WARNING
- WARNING
- INFO
- INFO
- DEBUG
- DEBUG
- TRACE
- TRACE
--sanitizers=STRING build with this list of sanitizers enabled
--sanitizers=STRING build with this list of sanitizers enabled
Convenience options:
Convenience options:
...
...
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