Fix compile fail for GIT version

This commit is contained in:
Lorenz Meier
2015-10-30 16:01:21 +01:00
parent b622080a65
commit f042c077b2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -700,7 +700,7 @@ function(px4_create_git_hash_header)
REQUIRED HEADER
ARGN ${ARGN})
execute_process(
COMMAND git rev-parse HEAD
COMMAND git log -n 1 --pretty=format:"%H"
OUTPUT_VARIABLE git_desc
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}