mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
cmake: fix git binary hash
The generated binary hash was off by one.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user