diff --git a/octomap_mapping/CMakeLists.txt b/octomap_mapping/CMakeLists.txt index b79bd985..8a870c25 100644 --- a/octomap_mapping/CMakeLists.txt +++ b/octomap_mapping/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.0.2) project(octomap_mapping) find_package(catkin REQUIRED) catkin_metapackage() diff --git a/octomap_server/CMakeLists.txt b/octomap_server/CMakeLists.txt index a9c8da3b..0f5d0c21 100644 --- a/octomap_server/CMakeLists.txt +++ b/octomap_server/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.0.2) project(octomap_server) set(PACKAGE_DEPENDENCIES @@ -16,7 +16,6 @@ set(PACKAGE_DEPENDENCIES nodelet ) - find_package(catkin REQUIRED COMPONENTS ${PACKAGE_DEPENDENCIES}) find_package(octomap REQUIRED) @@ -93,13 +92,10 @@ install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_color install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} - FILES_MATCHING PATTERN "*.h" - PATTERN ".svn" EXCLUDE ) install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch - PATTERN ".svn" EXCLUDE ) install(FILES diff --git a/octomap_server/include/octomap_server/OctomapServer.h b/octomap_server/include/octomap_server/OctomapServer.h index 2ea44550..4736de05 100644 --- a/octomap_server/include/octomap_server/OctomapServer.h +++ b/octomap_server/include/octomap_server/OctomapServer.h @@ -46,7 +46,12 @@ #include #include #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // pcl::SAC_SAMPLE_SIZE is protected since PCL 1.8.0 #include +#pragma GCC diagnostic pop + #include #include #include