mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
cmake: make sure params defined in external modules are found
This commit is contained in:
parent
a4fc7ae95e
commit
941d17d74c
@ -154,6 +154,10 @@ set(THREADS "4" CACHE STRING "number of threads to use for external build proces
|
||||
set(DEBUG_PORT "/dev/ttyACM0" CACHE STRING "debugging port")
|
||||
set(EXTERNAL_MODULES_LOCATION "" CACHE STRING "External modules source location")
|
||||
|
||||
if(NOT EXTERNAL_MODULES_LOCATION STREQUAL "")
|
||||
get_filename_component(EXTERNAL_MODULES_LOCATION "${EXTERNAL_MODULES_LOCATION}" ABSOLUTE)
|
||||
endif()
|
||||
|
||||
#=============================================================================
|
||||
# configuration
|
||||
#
|
||||
|
||||
@ -1041,7 +1041,7 @@ function(px4_generate_parameters_xml)
|
||||
|
||||
add_custom_command(OUTPUT ${OUT}
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
||||
-s ${module_list}
|
||||
-s ${module_list} ${EXTERNAL_MODULES_LOCATION}
|
||||
--board CONFIG_ARCH_${BOARD} --xml --inject-xml
|
||||
--overrides ${OVERRIDES}
|
||||
DEPENDS ${param_src_files} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user