From 8336beb30ff5bbd7fdfbc5a5066df2f6acfb6e2a Mon Sep 17 00:00:00 2001 From: jsngross Date: Thu, 17 Sep 2020 10:32:06 -0400 Subject: [PATCH] add ${catkin_EXPORTED_TARGETS} --- driving_control/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driving_control/CMakeLists.txt b/driving_control/CMakeLists.txt index b925cd6..ca8de8a 100644 --- a/driving_control/CMakeLists.txt +++ b/driving_control/CMakeLists.txt @@ -145,11 +145,11 @@ include_directories( add_executable(fws_driving src/fws_driving.cpp) target_link_libraries(fws_driving ${catkin_LIBRARIES}) -add_dependencies(fws_driving driving_control_generate_messages_cpp) +add_dependencies(fws_driving driving_control_generate_messages_cpp ${catkin_EXPORTED_TARGETS}) add_executable(wheel_control src/wheel_control.cpp) target_link_libraries(wheel_control ${catkin_LIBRARIES}) -add_dependencies(wheel_control driving_control_generate_messages_cpp) +add_dependencies(wheel_control driving_control_generate_messages_cpp ${catkin_EXPORTED_TARGETS}) ## Rename C++ executable without prefix ## The above recommended prefix causes long target names, the following renames the