Skip to content

Commit 4eed9dc

Browse files
committed
Fix cmake dependency issue due to message headers being generated in the same package
See also http://wiki.ros.org/catkin/CMakeLists.txt#Important_Prerequisites.2BAC8-Constraints.
1 parent 6cd5680 commit 4eed9dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if(TARGET ${PROJECT_NAME}_generate_messages_cpp)
8383
src/ros_rt_string_msgs_transport.cpp
8484
)
8585
target_link_libraries(rtt-rt_string_msgs-ros-transport ${catkin_LIBRARIES})
86-
add_dependencies(rtt-rt_string_msgs-ros-transport ${catkin_EXPORTED_TARGETS})
86+
add_dependencies(rtt-rt_string_msgs-ros-transport ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
8787
endif()
8888

8989
#############

0 commit comments

Comments
 (0)