From ffe4688d0bb073363fec94e6d71543581336161f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 21 Dec 2016 12:48:21 +0100 Subject: [PATCH] px4_base.cmake: make sure px_update_git_header.py is executed in the source directory otherwise the 'git describe' command can fail. --- cmake/common/px4_base.cmake | 1 + 1 file changed, 1 insertion(+) 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