diff --git a/cmake/common/px4_base.cmake b/cmake/common/px4_base.cmake index 00364d2548..62c2efe9f6 100644 --- a/cmake/common/px4_base.cmake +++ b/cmake/common/px4_base.cmake @@ -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