Make parameter source file generation properly depend on board config

This commit is contained in:
Lorenz Meier
2016-05-01 13:47:08 +02:00
parent d55feb2e0e
commit 0c7a4fd66e
+1 -1
View File
@@ -846,7 +846,7 @@ function(px4_generate_parameters_source)
PROPERTIES GENERATED TRUE)
add_custom_command(OUTPUT ${generated_files}
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Tools/px_generate_params.py ${XML} ${SCOPE}
DEPENDS ${XML} ${DEPS}
DEPENDS ${XML} ${DEPS} ${CMAKE_SOURCE_DIR}/cmake/configs/${OS}_${BOARD}_${LABEL}.cmake
)
set(${OUT} ${generated_files} PARENT_SCOPE)
endfunction()