-
Notifications
You must be signed in to change notification settings - Fork 30
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
Project option: NO_IGNITION_PREFIX #191
Conversation
This would allow projects (like sdformat) to use ignition-cmake2 without requiring the project name to start with ignition-. Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Steve Peters <[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.
Changes look good, but I have a few questions about some of the empty files:
examples/no_ignition_prefix/README.md
is empty. Would you mind updating it to mention the purpose of this example? You could point to theNO_IGNITION_PREFIX
option in the example project'sCMakeLists.txt
, and also point out that the tarball produced shouldn't have theignition
prefix.- There are a few empty
CMakeLists.txt
files. Can they be removed?
believe it or not, all of the empty files, including README.md are required. Try removing one, and you'll see build errors. I will add a description to the example README.md as you suggest |
Signed-off-by: Steve Peters <[email protected]>
|
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 |
* IgnConfigureProject: add NO_IGNITION_PREFIX option This would allow projects (like sdformat) to use ignition-cmake2 without requiring the project name to start with ignition-. Signed-off-by: Steve Peters <[email protected]>
🎉 New feature
Helps with gazebosim/sdformat#181, split out from #190
Summary
Currently all cmake projects that use
IgnConfigureProject
are required to have a cmake project name that starts withignition-
. We would like to useign-cmake2
withlibsdformat
, but its cmake project name and include paths don't follow this pattern. This pull request adds an option toIgnConfigureProject
to allow more flexibility:NO_IGNITION_PREFIX
: option that prevents theignition-
prefix from being prepended to the cmake project name.Test it
Look at the
examples/no_ignition_prefix
folder and build withcmake .. -DBUILDSYSTEM_TESTING=ON && make -j
. The generated tarball name is confirmed to not start withignition-
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge