cmake IDE improvements

This commit is contained in:
Daniel Agar
2021-03-24 10:22:56 -04:00
parent c4ae667157
commit 268d29a3a9
43 changed files with 234 additions and 114 deletions
+1 -2
View File
@@ -166,7 +166,7 @@ add_custom_command(OUTPUT ${PX4_BINARY_OUTPUT}
)
# create .px4 with parameter and airframe metadata
if (TARGET parameters_xml AND TARGET airframes_xml)
if(TARGET airframes_xml)
string(REPLACE ".elf" ".px4" fw_package ${PX4_BINARY_DIR}/${FW_NAME})
@@ -182,7 +182,6 @@ if (TARGET parameters_xml AND TARGET airframes_xml)
DEPENDS
${PX4_BINARY_DIR}/${PX4_BOARD}.bin
airframes_xml
parameters_xml
COMMENT "Creating ${fw_package}"
WORKING_DIRECTORY ${PX4_BINARY_DIR}
)
+1
View File
@@ -202,6 +202,7 @@ else()
endif()
# context
execute_process(COMMAND make --no-print-directory --quiet pass1dep WORKING_DIRECTORY ${NUTTX_DIR} OUTPUT_QUIET)
add_custom_command(
OUTPUT
${NUTTX_DIR}/include/nuttx/config.h