We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1684cb9 commit bfcf717Copy full SHA for bfcf717
nav2_msgs/CMakeLists.txt
@@ -13,8 +13,10 @@ find_package(action_msgs REQUIRED)
13
14
nav2_package()
15
16
-# TODO(jwallace42): This is a work around for https://github.com/ros2/rosidl_typesupport_fastrtps/issues/28
17
-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
18
+ add_compile_options(-Wno-error=deprecated)
19
+endif()
20
21
rosidl_generate_interfaces(${PROJECT_NAME}
22
"msg/CollisionMonitorState.msg"
0 commit comments