diff --git a/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt b/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt index f2c0b93d10967..37b13d7f3b780 100644 --- a/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt +++ b/common/tier4_traffic_light_rviz_plugin/CMakeLists.txt @@ -3,7 +3,7 @@ project(tier4_traffic_light_rviz_plugin) find_package(autoware_cmake REQUIRED) -# NOTE(Mamoru Sobue): workaround to avoid 'missing tinyxml2::tinyxml2' +# TODO(Mamoru Sobue): workaround to avoid 'missing tinyxml2::tinyxml2' # From tinyxml2_vendor/cmake/Modules/FindTinyXML2.cmake find_package(TinyXML2 CONFIG QUIET) if(NOT TinyXML2_FOUND) @@ -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)