cmake: fix git binary hash

The generated binary hash was off by one.
This commit is contained in:
Julian Oes
2016-11-23 11:32:00 +01:00
committed by Lorenz Meier
parent 43caf2b683
commit 109558cf1f
+2 -1
View File
@@ -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()