Skip to content

Commit

Permalink
libmavconn: Fix building without installation. Detect CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Jan 12, 2019
1 parent f0da0be commit cd29c38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libmavconn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ em_expand(${CMAKE_CURRENT_SOURCE_DIR}/mavlink.context.py.in
${CMAKE_CURRENT_SOURCE_DIR}/src/mavlink_helpers.cpp.em
${CMAKE_CURRENT_BINARY_DIR}/catkin_generated/src/mavlink_helpers.cpp)

if(DEFINED ENV{CI})
message(STATUS "CI environment detected. Assume that it is on RO fs")
else()
message(STATUS "Copy mavlink_dialect.h to source tree")
file(
COPY ${CMAKE_CURRENT_BINARY_DIR}/catkin_generated/include/mavconn/mavlink_dialect.h
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/include/mavconn/
)
endif()

#############
## Install ##
#############
Expand Down

0 comments on commit cd29c38

Please sign in to comment.