Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_package(actionlib_msgs) mangles catkin_LIBRARIES variable #27

Closed
wants to merge 1 commit into from

Conversation

dirk-thomas
Copy link
Member

Derived from ros/geometry#51:

The Hydro actionlib_msgs package mangles the catkin_LIBRARIES variable if it is included with find_package(actionlib_msgs). The CMake extra file must not depend on catkin: https://github.com/ros/common_msgs/blob/hydro-devel/actionlib_msgs/cmake/actionlib_msgs-extras.cmake.em#L2

@dirk-thomas
Copy link
Member Author

@roehling fyi

@dirk-thomas
Copy link
Member Author

@tfoote Please verify that the patch works and fixes the problem. I have only written in without running any configure step.

@roehling
Copy link

roehling commented Feb 5, 2014

The mangling is fixed, but I get a few generate_messages errors like this:

CMake Error at /home/roehling/ros/build/common_msgs/geometry_msgs/cmake/geometry_msgs-genmsg.cmake:167 (add_custom_target):
  add_custom_target cannot create target
  "geometry_msgs_generate_messages_cpp" because another target with the same
  name already exists.  The existing target is a custom target created in
  source directory "/home/roehling/ros/src/bug".  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:303 (include)
  common_msgs/geometry_msgs/CMakeLists.txt:33 (generate_messages)

My ROS workspace contains nothing but the common_msgs clone and the bug package.

@roehling
Copy link

roehling commented Feb 5, 2014

Here is the full build log: https://gist.github.com/roehling/8823026

@roehling
Copy link

roehling commented Feb 5, 2014

I just tried it without the fix, and the build error still occurs, so I'd say it is a problem with my build configuration.

@dirk-thomas
Copy link
Member Author

You are running a partial overlay workspace (like ros/genmsg#39). Rename bug to z as a temporary workaround for the duplicate targets.

@roehling
Copy link

roehling commented Feb 5, 2014

Thanks, that helped.

@tfoote
Copy link
Member

tfoote commented Feb 6, 2014

Confirmed the patch fixes the test code.

@tfoote tfoote deleted the fix_actionlib_msgs_extra branch February 6, 2014 00:35
@tfoote
Copy link
Member

tfoote commented Feb 6, 2014

cherry-picked back to groovy-devel 394288c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants