Skip to content
Snippets Groups Projects
Commit 109558cf authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

cmake: fix git binary hash

The generated binary hash was off by one.
parent 43caf2b6
No related branches found
No related tags found
No related merge requests found
......@@ -901,7 +901,8 @@ function(px4_create_git_hash_header)
)
#message(STATUS "GIT_VERSION = ${git_version}")
set(git_version_short)
string(SUBSTRING ${git_version} 1 16 git_version_short)
# We use the first 16 chars, starting at index 0
string(SUBSTRING ${git_version} 0 16 git_version_short)
configure_file(${PX4_SOURCE_DIR}/cmake/templates/build_git_version.h.in ${HEADER} @ONLY)
endfunction()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment