Skip to content

Commit

Permalink
Replace enforcement of (old) C++14 standard with moveit_build_options()
Browse files Browse the repository at this point in the history
Ubuntu 22.04 uses C++17 as default and fails on old C++14.
  • Loading branch information
rhaschke committed Sep 13, 2023
1 parent ff6918e commit 2cc7bb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
9 changes: 2 additions & 7 deletions moveit_calibration_gui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
cmake_minimum_required(VERSION 3.1.3)
project(moveit_calibration_gui)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)

if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

find_package(catkin REQUIRED COMPONENTS
class_loader
cv_bridge
Expand All @@ -30,6 +23,8 @@ find_package(catkin REQUIRED COMPONENTS

find_package(Eigen3 REQUIRED)

moveit_build_options()

# Qt Stuff
if(rviz_QT_VERSION VERSION_LESS "5")
find_package(Qt4 ${rviz_QT_VERSION} REQUIRED QtCore QtGui)
Expand Down
10 changes: 3 additions & 7 deletions moveit_calibration_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
cmake_minimum_required(VERSION 3.1.3)
project(moveit_calibration_plugins)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)

if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

find_package(catkin REQUIRED COMPONENTS
roscpp
rosconsole
Expand All @@ -20,6 +13,9 @@ find_package(catkin REQUIRED COMPONENTS

find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED imgcodecs aruco)
find_package(moveit_core REQUIRED)

moveit_build_options()

if(OpenCV_VERSION VERSION_EQUAL 3.2)
message(WARNING "Your version of OpenCV (3.2) is known to have buggy ArUco pose detection! Use a ChArUco target or upgrade OpenCV")
Expand Down
1 change: 1 addition & 0 deletions moveit_calibration_plugins/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<url type="repository">https://github.com/ros-planning/moveit_calibration</url>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>moveit_core</build_depend>

<depend>roscpp</depend>
<depend>rosconsole</depend>
Expand Down

0 comments on commit 2cc7bb9

Please sign in to comment.