Skip to content

Commit 31fffd4

Browse files
traversarostevedanomodolor
authored andcommitted
Fix compilation on Windows (ros-navigation#4843)
Signed-off-by: Silvio Traversaro <[email protected]> Signed-off-by: stevedanomodolor <[email protected]>
1 parent eeb8f2e commit 31fffd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nav2_msgs/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ find_package(action_msgs REQUIRED)
1313

1414
nav2_package()
1515

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)
16+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
17+
# 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()
1820

1921
rosidl_generate_interfaces(${PROJECT_NAME}
2022
"msg/CollisionMonitorState.msg"

0 commit comments

Comments
 (0)