mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:17:20 +08:00
Switch GIT command for revision hash
This commit is contained in:
@@ -700,7 +700,7 @@ function(px4_create_git_hash_header)
|
|||||||
REQUIRED HEADER
|
REQUIRED HEADER
|
||||||
ARGN ${ARGN})
|
ARGN ${ARGN})
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND git log -n 1 --pretty=format:"%H"
|
COMMAND git rev-parse HEAD
|
||||||
OUTPUT_VARIABLE git_desc
|
OUTPUT_VARIABLE git_desc
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user