Skip to content

Commit 740316b

Browse files
authored
Fix Qt5 version requirement (#213)
- Use rviz_QT_VERSION - Drop OpenGL dependency
1 parent fe52373 commit 740316b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rviz_imu_plugin/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ if(rviz_QT_VERSION VERSION_LESS "5")
1414
include(${QT_USE_FILE})
1515
else()
1616
message(STATUS "Using Qt5 based on the rviz_QT_VERSION: ${rviz_QT_VERSION}")
17-
find_package(Qt5Widgets REQUIRED)
18-
find_package(Qt5Core REQUIRED)
19-
find_package(Qt5OpenGL REQUIRED)
17+
find_package(Qt5 ${rviz_QT_VERSION} REQUIRED Core Widgets)
2018
## Set the QT_LIBRARIES variable for Qt5, so it can be used below.
2119
set(QT_LIBRARIES Qt5::Widgets)
2220
endif()

0 commit comments

Comments
 (0)