From 940dc9cca0d96c91ca1cc81b1b73872da7599a1b Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 18 Sep 2020 21:18:36 -0400 Subject: [PATCH] cmake NuttX build fix path to git dir - this relative path was incorrect for the px4io when using the Makefile generator and built for inclusion within another build (eg px4_fmu-v5_default) --- platforms/nuttx/NuttX/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/NuttX/CMakeLists.txt b/platforms/nuttx/NuttX/CMakeLists.txt index a58fcd15b7..9cf5de8fa1 100644 --- a/platforms/nuttx/NuttX/CMakeLists.txt +++ b/platforms/nuttx/NuttX/CMakeLists.txt @@ -68,7 +68,7 @@ list(REMOVE_ITEM copy_nuttx_files ${NUTTX_SRC_DIR}/nuttx/.git) add_custom_command( OUTPUT ${PX4_BINARY_DIR}/NuttX/nuttx_copy.stamp COMMAND ${NUTTX_COPY_CMD} ${NUTTX_COPY_CMD_OPTS} ${CP_SRC} ${CP_DST} - COMMAND echo "gitdir: ${nuttx_git_dir}" > ${CP_DST}/nuttx/.git + COMMAND echo "gitdir: ${nuttx_git_dir}" > ${PX4_BINARY_DIR}/NuttX/nuttx/.git COMMAND ${CMAKE_COMMAND} -E touch ${PX4_BINARY_DIR}/NuttX/nuttx_copy.stamp DEPENDS git_nuttx