Skip to content

Commit d176615

Browse files
committed
Fix cmake segfault when using ament_get_recursive_properties()
1 parent ab66037 commit d176615

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

rviz_python_bindings/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ set(shiboken_generated_sources
4747
${CMAKE_CURRENT_BINARY_DIR}/${shiboken_bindings_library}/ogre_wrapper.cpp
4848
)
4949

50-
ament_get_recursive_properties(deps_include_dirs _ ${rviz_common_TARGETS})
5150
list(APPEND shiboken_include_dirs
52-
${deps_include_dirs})
53-
message(STATUS "ROS inlcude dirs: ${deps_include_dirs}")
51+
${rviz_common_INCLUDE_DIRS}
52+
${rviz_rendering_INCLUDE_DIRS}
53+
${OGRE_INCLUDE_DIRS}
54+
${rcl_INCLUDE_DIRS}
55+
${rclcpp_INCLUDE_DIRS}
56+
${rmw_INCLUDE_DIRS}
57+
${tf2_msgs_INCLUDE_DIRS}
58+
${pluginlib_INCLUDE_DIRS}
59+
)
60+
message(STATUS "ROS inlcude dirs: ${shiboken_include_dirs}")
5461
message(STATUS "QT5 inlcude dirs: ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}")
5562
list(APPEND shiboken_include_dirs
5663
${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}

0 commit comments

Comments
 (0)