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

Missing find_dependency call in fclConfig.cmake when imported targets are used in target_link_libraries #449

Closed
traversaro opened this issue Feb 23, 2020 · 4 comments · Fixed by #452

Comments

@traversaro
Copy link
Contributor

traversaro commented Feb 23, 2020

In the CMake build scripts of fcl, if the imported targets Eigen3::Eigen, ccd or octomap are defined, they are used in target_link_libraries with PUBLIC visibility (see #196). When this happens, then in the fclConfig.cmake script the appropriate find_dependency script should be added, to ensure that the imported targets are properly defined also in the downstream project that consume fcl via find_package(fcl).

@jamiesnape
Copy link
Contributor

Would people complain if we stopped supporting the spaghetti of different ways of finding all these packages? Does anyone actually know what the minimum supported versions of all three are?

@traversaro
Copy link
Contributor Author

Would people complain if we stopped supporting the spaghetti of different ways of finding all these packages? Does anyone actually know what the minimum supported versions of all three are?

I would definitely in favor of doing so. However, unfortunately the situation regarding ccd is a bit messy, especially if you want to support also the version installed by debian repositories. In particular, the version currently in Debian sid is the latest 2.1, but it does not contain the ccd-config.cmake file (fyi @j-rivero), probably as it has been generated using the autotools-based build systems.

@jamiesnape
Copy link
Contributor

Looks like eigen and octomap have the necessary CMake files back to Xenial, even, so unless anyone complains, I will simplify those while I fix this. Looks like for CCD, I need to support pkg-config.

@jamiesnape
Copy link
Contributor

Actually CI is on Trusty, so I guess that is a complaint. I will just fix as is, for now, since I am assuming this will be in a patch release.

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

Successfully merging a pull request may close this issue.

2 participants