Skip to content

Commit

Permalink
if USE_VISUALIZATION if OFF, we assume we're using Qt5, use Qt5Core i…
Browse files Browse the repository at this point in the history
…nstaed of Qt5Widgets
  • Loading branch information
k-okada committed Jul 10, 2022
1 parent 55bcd08 commit 0ffe63f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsk_rviz_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ include_directories(src ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS})
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need

if(rviz_QT_VERSION VERSION_LESS "5")
if(USE_VISUALIZATION AND ("${rviz_QT_VERSION}" VERSION_LESS "5"))
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})
else()
find_package(Qt5Widgets REQUIRED)
else() # is USE_VISUALIZAITON not set, but we still need Qt5
find_package(Qt5Core REQUIRED)
endif()
add_definitions(-DQT_NO_KEYWORDS -g)

Expand Down

0 comments on commit 0ffe63f

Please sign in to comment.