Skip to content

Commit

Permalink
Fix compilation on Windows (#4843)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro authored Jan 10, 2025
1 parent 1684cb9 commit 408fbb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nav2_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ find_package(action_msgs REQUIRED)

nav2_package()

# TODO(jwallace42): This is a work around for https://github.com/ros2/rosidl_typesupport_fastrtps/issues/28
add_compile_options(-Wno-error=deprecated)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# TODO(jwallace42): This is a work around for https://github.com/ros2/rosidl_typesupport_fastrtps/issues/28
add_compile_options(-Wno-error=deprecated)
endif()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/CollisionMonitorState.msg"
Expand Down

0 comments on commit 408fbb8

Please sign in to comment.