From 93176f845bb61c990a36dee9a6a99eedb0ba4932 Mon Sep 17 00:00:00 2001 From: Alexis Wilhelm Date: Wed, 28 Aug 2019 15:03:58 +0200 Subject: [PATCH] Add an explicit dependency to obstacle_detector_generate_messages_cpp. Seems to fix issue #10. Sometimes, when building with `catkin_make`, we used to get this error: In file included from /home/src/obstacle_detector/src/displays/circle_visual.cpp:36:0: /home/src/obstacle_detector/include/obstacle_detector/displays/circle_visual.h:39:10: fatal error: obstacle_detector/Obstacles.h: No such file or directory Now our workspace builds with a single catkin_make call. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d2ba1..d313ff5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,8 @@ catkin_package( include_directories(include ${catkin_INCLUDE_DIRS} ${ARMADILLO_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) +set(catkin_EXPORTED_TARGETS ${catkin_EXPORTED_TARGETS} obstacle_detector_generate_messages_cpp) + # # Build libs #