px4_base.cmake: make sure px_update_git_header.py is executed in the source directory

otherwise the 'git describe' command can fail.
This commit is contained in:
Beat Küng 2016-12-21 12:48:21 +01:00 committed by Lorenz Meier
parent 9ee478e1f7
commit ffe4688d0b
1 changed files with 1 additions and 0 deletions

View File

@ -932,6 +932,7 @@ function(px4_create_git_hash_header)
add_custom_command(
OUTPUT __fake
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_update_git_header.py ${OUT}
WORKING_DIRECTORY ${PX4_SOURCE_DIR}
COMMENT "Generating git hash header"
)
add_custom_target(ver_gen ALL