Skip to content

Commit

Permalink
Merge branch 'pymavlink_merge' of github.com:mavlink/mavlink into pym…
Browse files Browse the repository at this point in the history
…avlink_merge
  • Loading branch information
jgoppert committed Feb 21, 2012
2 parents 2e61f83 + b2684f5 commit 1351cf2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ endif()
# mavlink generation
macro(generateMavlink version definitions)
foreach(definition ${definitions})
set(targetName ${definition}-${version})
set(definitionAbsPath ${CMAKE_SOURCE_DIR}/message_definitions/${version}/${definition})
set(targetName ${definition}-v${version})
set(definitionAbsPath ${CMAKE_SOURCE_DIR}/message_definitions/v${version}/${definition})
message(STATUS "processing: ${definitionAbsPath}")
add_custom_command(
OUTPUT ${targetName}-stamp
COMMAND ${PYTHON_EXECUTABLE} ${mavgen} --lang=C --wire-protocol=0.9
--output=include/${version} ${definitionAbsPath}
COMMAND ${PYTHON_EXECUTABLE} ${mavgen} --lang=C --wire-protocol=${version}
--output=include/v${version} ${definitionAbsPath}
COMMAND touch ${targetName}-stamp
DEPENDS ${definitionAbsPath} ${mavgen}
)
Expand All @@ -69,7 +69,7 @@ set(v0.9Definitions
test.xml
ualberta.xml
)
generateMavlink("v0.9" "${v0.9Definitions}")
generateMavlink("0.9" "${v0.9Definitions}")
set(v1.0Definitions
ardupilotmega.xml
common.xml
Expand All @@ -80,7 +80,7 @@ set(v1.0Definitions
test.xml
ualberta.xml
)
generateMavlink("v1.0" "${v1.0Definitions}")
generateMavlink("1.0" "${v1.0Definitions}")

# testing
if (BUILD_TEST)
Expand Down

0 comments on commit 1351cf2

Please sign in to comment.