cmake handle mavlink v1 submodule only where used

This commit is contained in:
Daniel Agar
2017-12-10 17:46:48 -05:00
parent 1886c8d983
commit 32cba41bed
4 changed files with 14 additions and 7 deletions
+4 -1
View File
@@ -31,7 +31,7 @@
#
############################################################################
include_directories(${PX4_SOURCE_DIR}/mavlink/include/mavlink)
px4_add_git_submodule(TARGET git_mavlink_v1 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v1.0")
option(ENABLE_UART_RC_INPUT "Enable RC Input from UART mavlink connection" OFF)
@@ -59,8 +59,11 @@ px4_add_module(
MODULE modules__simulator
MAIN simulator
COMPILE_FLAGS
INCLUDES
${PX4_SOURCE_DIR}/mavlink/include/mavlink
SRCS
${SIMULATOR_SRCS}
DEPENDS
git_mavlink_v1
platforms__common
)