-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Factor out basic cmake common code. #536
Conversation
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.
LGTM.
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.
Looks good.
Alternatively to creating a new package we could have common functionality in navigation2
package.
Just wondering if @SteveMacenski knows of any other way to do this besides creating a package just for common CMakeLists code? |
@orduno We can't put this in the |
5256fec
to
e8d7341
Compare
@mkhansen-intel Here are alternatives I can see:
Number 1 is a viable option. It trades off reduced package count against violating the DRY principle. Number 2 is viable on Linux but will make it very difficult to ever checkout and build on Windows. Number 3 is an option so long as our changes are not very Nav2 specific, but depends on convincing OSRF to accept them upstream. Number 4 is not fundamentally different than this PR, except it moves the new package to another repo to hide it, and adds in the complexity of having another repo to manage and get integrated into the ROS2 release. I believe I can now make the code coverage changes without actually changing the CMakeLists.txt, so I can close this and we can kick the can down the road till the next time something comes up. |
e8d7341
to
be15cd8
Compare
* Factor out basic cmake common code. * Fixing the package name so it can include other common things in the future.
Basic Info
Description of contribution in a few bullet points
CMakeLists.txt
files throughout the project. It will get even worse as we add code coverage capabilities. This PR creates a package where we can put common cmake functions and macros to reuse across packages.