Skip to content

Commit d59672f

Browse files
authored
Fix compile with qt6 (#1475)
Signed-off-by: mosfet80 <[email protected]>
1 parent 656dcdd commit d59672f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rviz_default_plugins/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ target_link_libraries(rviz_default_plugins PUBLIC
275275
${visualization_msgs_TARGETS}
276276
resource_retriever::resource_retriever
277277
${rviz_resource_interfaces_TARGETS}
278-
Qt5::Widgets
279278
)
280279

281280
target_link_libraries(rviz_default_plugins PRIVATE
@@ -395,7 +394,7 @@ if(BUILD_TESTING)
395394
target_link_libraries(frame_view_controller_test
396395
${TEST_FIXTURE_WITH_MOCK_LIBRARIES}
397396
rviz_default_plugins
398-
Qt5::Widgets
397+
Qt${QT_VERSION_MAJOR}::Widgets
399398
ogre_testing_environment
400399
)
401400
endif()

0 commit comments

Comments
 (0)