From 22ebf9de7b930ff7b88f65581f64a0fbfa26e227 Mon Sep 17 00:00:00 2001 From: Mamoru Sobue Date: Sat, 4 Jun 2022 16:55:22 +0900 Subject: [PATCH] suppress warning Signed-off-by: Mamoru Sobue --- common/tier4_traffic_light_rviz_plugin/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt b/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt index f2c0b93d10967..3376b4a1fb9fe 100644 --- a/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt +++ b/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt @@ -27,8 +27,6 @@ set(QT_LIBRARIES Qt5::Widgets) set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) add_definitions(-DQT_NO_KEYWORDS) -add_compile_options(-Wno-error=deprecated-copy -Wno-error=pedantic) - ament_auto_add_library(${PROJECT_NAME} SHARED src/traffic_light_publish_panel.cpp ) @@ -37,6 +35,8 @@ target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES} ) +target_compile_options(${PROJECT_NAME} PUBLIC -Wno-error=deprecated-copy -Wno-error=pedantic) + # Export the plugin to be imported by rviz2 pluginlib_export_plugin_description_file(rviz_common plugins/plugin_description.xml)