From da54333252df8e81f0fa78d0dabc27206ee2b70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Tue, 11 Oct 2022 10:57:29 +0200 Subject: [PATCH] trying to fix message generation bug --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc20c2f..5331b32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,7 @@ generate_messages( # produces the XXXConfig.cmake file among other things catkin_package( INCLUDE_DIRS include + CATKIN_DEPENDS message_runtime std_msgs geometry_msgs ) ########### @@ -62,6 +63,9 @@ add_library(subscriber_${PROJECT_NAME} src/subscriber_odom2d.cpp src/subscriber_pose.cpp) +# messages generated are a dependency of subscriber_landmarks +add_dependencies(subscriber_${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS}) + add_library(publisher_${PROJECT_NAME} src/publisher_graph.cpp src/publisher_pose.cpp -- GitLab