Browse Source

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)
sbg
Daniel Agar 4 years ago committed by GitHub
parent
commit
940dc9cca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      platforms/nuttx/NuttX/CMakeLists.txt

2
platforms/nuttx/NuttX/CMakeLists.txt

@ -68,7 +68,7 @@ list(REMOVE_ITEM copy_nuttx_files ${NUTTX_SRC_DIR}/nuttx/.git) @@ -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

Loading…
Cancel
Save