Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
5418a083
Commit
5418a083
authored
Dec 28, 2013
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shows the current BZR version in version.h, not the last in the repository (Nick Østergaard)
parent
ca60f086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
CreateBzrVersionHeader.cmake
CMakeModules/CreateBzrVersionHeader.cmake
+8
-1
No files found.
CMakeModules/CreateBzrVersionHeader.cmake
View file @
5418a083
...
@@ -30,8 +30,15 @@ macro( create_bzr_version_header )
...
@@ -30,8 +30,15 @@ macro( create_bzr_version_header )
set
(
_Bazaar_SAVED_LC_ALL
"$ENV{LC_ALL}"
)
set
(
_Bazaar_SAVED_LC_ALL
"$ENV{LC_ALL}"
)
set
(
ENV{LC_ALL} C
)
set
(
ENV{LC_ALL} C
)
# Get the tree revison
execute_process
(
COMMAND
execute_process
(
COMMAND
${
Bazaar_EXECUTABLE
}
log -r-1
${
PROJECT_SOURCE_DIR
}
${
Bazaar_EXECUTABLE
}
revno --tree
${
PROJECT_SOURCE_DIR
}
OUTPUT_VARIABLE _bazaar_TREE_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Get more info about that revision
execute_process
(
COMMAND
${
Bazaar_EXECUTABLE
}
log -r
${
_bazaar_TREE_DATE
}
${
PROJECT_SOURCE_DIR
}
OUTPUT_VARIABLE _bazaar_LAST_CHANGE_LOG
OUTPUT_VARIABLE _bazaar_LAST_CHANGE_LOG
ERROR_VARIABLE _bazaar_log_error
ERROR_VARIABLE _bazaar_log_error
RESULT_VARIABLE _bazaar_log_result
RESULT_VARIABLE _bazaar_log_result
...
...
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