Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
kumir
kumir2
Commits
144131a8
Commit
144131a8
authored
Apr 21, 2017
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed query version info from VCS
parent
b9d5e9d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
scripts/query_version_info.py
scripts/query_version_info.py
+1
-0
src/app/CMakeLists.txt
src/app/CMakeLists.txt
+1
-0
No files found.
scripts/query_version_info.py
View file @
144131a8
...
@@ -183,6 +183,7 @@ def cmake_version_info():
...
@@ -183,6 +183,7 @@ def cmake_version_info():
output
+=
"-DGIT_BRANCH=
\"
{}
\"
;"
.
format
(
version_name
[
"branch"
])
output
+=
"-DGIT_BRANCH=
\"
{}
\"
;"
.
format
(
version_name
[
"branch"
])
output
+=
"-DGIT_HASH=
\"
{}
\"
;"
.
format
(
version_name
[
"hash"
])
output
+=
"-DGIT_HASH=
\"
{}
\"
;"
.
format
(
version_name
[
"hash"
])
output
+=
"-DGIT_TIMESTAMP=
\"
{}
\"
;"
.
format
(
timestamp
)
output
+=
"-DGIT_TIMESTAMP=
\"
{}
\"
;"
.
format
(
timestamp
)
return
output
def
source_file_name
(
prefix
:
str
,
suffix
:
str
):
def
source_file_name
(
prefix
:
str
,
suffix
:
str
):
...
...
src/app/CMakeLists.txt
View file @
144131a8
...
@@ -29,6 +29,7 @@ else()
...
@@ -29,6 +29,7 @@ else()
OUTPUT_VARIABLE VERSION_DEFINITIONS
OUTPUT_VARIABLE VERSION_DEFINITIONS
)
)
add_definitions
(
${
VERSION_DEFINITIONS
}
)
add_definitions
(
${
VERSION_DEFINITIONS
}
)
message
(
STATUS
"Queried version info from git:
${
VERSION_DEFINITIONS
}
"
)
endif
()
endif
()
#if(NOT APPLE)
#if(NOT APPLE)
...
...
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