Skip to content

Commit 226d02c

Browse files
committed
CMakeLists: Address warnings under ROS Noetic
1 parent 1c870df commit 226d02c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 3.0.2)
22
project(octomap_rviz_plugins)
33

44
find_package(catkin REQUIRED COMPONENTS octomap_msgs
@@ -21,7 +21,7 @@ catkin_package(
2121
CATKIN_DEPENDS octomap_msgs
2222
roscpp
2323
rviz
24-
DEPENDS octomap
24+
DEPENDS OCTOMAP
2525
)
2626

2727

@@ -49,6 +49,7 @@ set(SOURCE_FILES
4949

5050
add_library(${PROJECT_NAME} ${SOURCE_FILES})
5151
target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${OCTOMAP_LIBRARIES} ${catkin_LIBRARIES})
52+
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-register") # Avoid OGRE deprecaton warnings under C++17
5253

5354
install(DIRECTORY include/${PROJECT_NAME}/
5455
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}

0 commit comments

Comments
 (0)