mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
cmake: make sure params defined in external modules are found
This commit is contained in:
@@ -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(DEBUG_PORT "/dev/ttyACM0" CACHE STRING "debugging port")
|
||||||
set(EXTERNAL_MODULES_LOCATION "" CACHE STRING "External modules source location")
|
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
|
# configuration
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1041,7 +1041,7 @@ function(px4_generate_parameters_xml)
|
|||||||
|
|
||||||
add_custom_command(OUTPUT ${OUT}
|
add_custom_command(OUTPUT ${OUT}
|
||||||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
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
|
--board CONFIG_ARCH_${BOARD} --xml --inject-xml
|
||||||
--overrides ${OVERRIDES}
|
--overrides ${OVERRIDES}
|
||||||
DEPENDS ${param_src_files} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
DEPENDS ${param_src_files} ${PX4_SOURCE_DIR}/Tools/px_process_params.py
|
||||||
|
|||||||
Reference in New Issue
Block a user