Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LMGC90
LMGC90_user
Commits
851f8310
Commit
851f8310
authored
May 26, 2015
by
mozul
Browse files
ugly patch to get git revision
parent
4166649c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/cmake/modules/set_revision_number.cmake
View file @
851f8310
...
...
@@ -7,7 +7,7 @@
# when typing 'make'
if
(
GIT_EXECUTABLE
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
--git-dir
${
dir
}
/.git --work-tree=
${
dir
}
rev-parse HEAD
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
--git-dir
${
dir
}
/.
./.
git --work-tree=
${
dir
}
rev-parse HEAD
OUTPUT_VARIABLE git_revision
OUTPUT_STRIP_TRAILING_WHITESPACE
)
...
...
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