forked from Archive/PX4-Autopilot
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:
parent
9ee478e1f7
commit
ffe4688d0b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue