-
Notifications
You must be signed in to change notification settings - Fork 31
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
FindIgnURDFDOM cmake module #193
Conversation
Signed-off-by: Teo Koon Peng <[email protected]>
Could it make sense to call it |
I agree; please rename to |
Signed-off-by: Teo Koon Peng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid that the current implementation is not valid for Windows/MSVC builds.
Is there any particular reason not to use the urdfdom CMake modules instead of using pkg-config? I think that we could support Windows and other system well by using CMake if possible.
the SDFormat search logic has a fall-back to find_package if pkg_check_modules does not find it: it looks like DART now uses only |
Signed-off-by: Teo Koon Peng <[email protected]>
I missed that urdfdom supports cmake. But sdformat prefers the pkgconfig and fallbacks to cmake, should we change it to prefer cmake first? One downside with the cmake config is that it does not support version checking. |
Signed-off-by: Teo Koon Peng <[email protected]>
It is my impression that we should prioritize CMake over pkg-config as much as we can. The problem with no version checking with urdfdom CMake is unfortunate and seems a big thing to me. In this case we can document that we try pkg-config first for that reason. |
Signed-off-by: Jose Luis Rivero <[email protected]>
I've implemented the suggestion on d46f7cc branch |
Signed-off-by: Teo Koon Peng <[email protected]>
Thanks, I just merged that commit in. |
@osrf-jenkins retest this please |
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1 |
* Add find FindIgnURDFDOM module. Prefer pkg-config since the CMake module at urdfdom lacks the capabilities of version checking. Signed-off-by: Teo Koon Peng <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
🎉 New feature
Summary
Adds a minimal
FindURDF.cmake
module, this will help migrate sdformat to ign-cmake gazebosim/sdformat#181.Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge