-
Notifications
You must be signed in to change notification settings - Fork 196
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
YARP_managerConfig.cmake requires FindTinyXML.cmake to be in CMAKE_MODULE_PATH, but YARP does not install it #1736
Comments
@drdanz If you agree on the proposed solution, I can proceed in providing a PR. |
Apparently I was wrong, and the same problem occurs if YARP is generated without YCM: https://travis-ci.org/robotology/icub-tests/jobs/389236808#L5408 . |
Good old issue related to this: robotology-legacy/codyco-superbuild#15 . |
I'm unable to reproduce this at e709b46 (and robotology/ycm-cmake-modules@9e2c204). YCM is found on system by Line 33 in e709b46
This call loads YCM module paths into |
I see this error when I uninstall YCM, though. Could you have installed YCM master by chance, and are you sure that YARP is in fact using an external YCM? YARP requires YCM 0.7.0 since quite recently (84e1d35) and discards 0.6.0 in the call referenced in my previous comment. |
This is a follow up to robotology#1733 for non-static YARP builds, which were prone to cause similar errors in downstreams (see robotology#1736) due to internal dependencies (e.g. TinyXML) not being found.
Please check #1739 against your sample project. |
This is a follow up to robotology#1733 for non-static YARP builds, which were prone to cause similar errors in downstreams (see robotology#1736) due to internal dependencies (e.g. TinyXML) not being found.
This is a follow up to robotology#1733 for non-static YARP builds, which were prone to cause similar errors in downstreams (see robotology#1736) due to internal dependencies (e.g. TinyXML) not being found.
@traversaro is this still an issue with latest master? |
Given that robot-testing and icub-tests seem to be working fine in |
I just ran into this on YARP 3.9, but the issue disappeared after cleaning the build folder and reconfiguring from scratch. I noticed the presence of a build/YARP_priv_tinyxml/ directory (it was not re-generated after the cleanup), and that the YARP_manager and YARP_robotinterface components had a |
Describe the bug
If you have
find_package(YARP COMPONENTS manager REQUIRED)
using a YARP installed with YCM, you get the following error:To Reproduce
Configure a downstream project with
find_package(YARP COMPONENTS manager REQUIRED)
in its CMakeLists.txt , do not havefind_package(YCM)
in the same downstream project and make sure that YARP was configured/installed using an external YCMExpected behavior
find_package(YARP COMPONENTS manager REQUIRED)
should work fine.Configuration (please complete the following information):
Proposed solution
If
YARP
is configured using an external YCM (and so it is not installing YCM CMake modules) afind_dependency(YCM)
should be added inYARPConfig.cmake
.The text was updated successfully, but these errors were encountered: