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
37b39987
Commit
37b39987
authored
Jul 18, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new variable for use in Manual generation
parent
9222e6c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
CMakeLists.txt
+9
-4
No files found.
CMakeLists.txt
View file @
37b39987
...
...
@@ -546,25 +546,30 @@ set(MANUAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/manual")
if
(
EXISTS
"
${
MANUAL_DIR
}
"
AND EXISTS
"
${
MANUAL_DIR
}
/variables.tex.in"
AND EXISTS
"
${
MANUAL_DIR
}
/conf.py.in"
)
# retrieve current branch name
# retrieve current branch name
for CAF
execute_process
(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# retrieve current SHA1 hash
# retrieve current SHA1 hash
for CAF
execute_process
(
COMMAND git log --pretty=format:%h -n 1
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE CAF_SHA
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# retrieve current SHA1 hash for the Manual
execute_process
(
COMMAND git log --pretty=format:%h -n 1
WORKING_DIRECTORY
${
MANUAL_DIR
}
OUTPUT_VARIABLE CAF_MANUAL_SHA
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
${
GIT_BRANCH
}
STREQUAL
"master"
)
# retrieve current tag name
# retrieve current tag name
for CAF
execute_process
(
COMMAND git describe --tags --contains
${
CAF_SHA
}
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
RESULT_VARIABLE GIT_TAG_RES
OUTPUT_VARIABLE GIT_TAG
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# prefer tag name over
regular
version
# prefer tag name over
auto-generated
version
if
(
"
${
GIT_TAG_RES
}
"
STREQUAL
"0"
)
set
(
CAF_RELEASE
"
${
GIT_TAG
}
"
)
else
()
...
...
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