Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
6e9a211a
Commit
6e9a211a
authored
May 02, 2015
by
Fabio Bas
Browse files
Append last commit date to version string
Shown in “about” dialog and used in windows packages name.
parent
53f63e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/getversion.cmake
View file @
6e9a211a
find_package
(
Git
)
find_package
(
Git
)
if
(
GIT_FOUND
)
if
(
GIT_FOUND
)
execute_process
(
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --long --always
COMMAND
${
GIT_EXECUTABLE
}
log -1 --date=short
"--pretty=%h (%cd)"
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
RESULT_VARIABLE res_var
RESULT_VARIABLE res_var
OUTPUT_VARIABLE GIT_COM_ID
OUTPUT_VARIABLE GIT_COM_ID
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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