Skip to content

Commit 46805e2

Browse files
committed
Fixup: avoid deprecation warnings of MoveIt master branch
Fixes missing definition of MOVEIT_MASTER for capabilities packages in 233d63a
1 parent 919531b commit 46805e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

capabilities/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ catkin_package(
1919
std_msgs
2020
)
2121

22+
# check for MOVEIT_MASTER
23+
include(CheckIncludeFileCXX)
24+
set(CMAKE_REQUIRED_INCLUDES ${moveit_core_INCLUDE_DIRS})
25+
CHECK_INCLUDE_FILE_CXX(moveit/collision_detection/collision_env.h MOVEIT_MASTER)
26+
if(NOT MOVEIT_MASTER)
27+
set(MOVEIT_MASTER 0)
28+
endif()
29+
add_definitions(-DMOVEIT_MASTER=${MOVEIT_MASTER})
30+
2231
include_directories(
2332
${catkin_INCLUDE_DIRS}
2433
)

0 commit comments

Comments
 (0)