mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:53:33 +08:00
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:
@@ -932,6 +932,7 @@ function(px4_create_git_hash_header)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT __fake
|
OUTPUT __fake
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_update_git_header.py ${OUT}
|
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_update_git_header.py ${OUT}
|
||||||
|
WORKING_DIRECTORY ${PX4_SOURCE_DIR}
|
||||||
COMMENT "Generating git hash header"
|
COMMENT "Generating git hash header"
|
||||||
)
|
)
|
||||||
add_custom_target(ver_gen ALL
|
add_custom_target(ver_gen ALL
|
||||||
|
|||||||
Reference in New Issue
Block a user