Skip to content

Commit

Permalink
jsk_rviz_plugins: find_package(Qt.. only when USE_VISUALIZATION
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Mar 10, 2023
1 parent 5afa413 commit 645ceda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsk_rviz_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ 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()
elseif(USE_VISUALIZATION)
find_package(Qt5Widgets REQUIRED)
endif()
add_definitions(-DQT_NO_KEYWORDS -g)
Expand Down

0 comments on commit 645ceda

Please sign in to comment.