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

CMake 3.30: urdfdom_parser fails to build #203

Closed
oysstu opened this issue Jul 10, 2024 · 1 comment · Fixed by #205
Closed

CMake 3.30: urdfdom_parser fails to build #203

oysstu opened this issue Jul 10, 2024 · 1 comment · Fixed by #205

Comments

@oysstu
Copy link

oysstu commented Jul 10, 2024

Urdfdom_parser fails to build due to the following lines

target_link_libraries(urdf_parser INTERFACE
urdfdom::urdfdom_model
urdfdom::urdfdom_sensor
urdfdom::urdfdom_world)

The following error is output

CMake Error at urdf_parser/CMakeLists.txt:77 (target_link_libraries):
  The link interface of target "urdf_parser" contains:

    urdfdom::urdfdom_model

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Removing urdfdom:: from all three targets resolves the issue. Not sure if this causes older cmake versions to fail.

@scpeters
Copy link
Contributor

Thanks, I've reproduced the error on macOS and opened #204 with your suggested fix after confirming it locally.

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