Factor out basic cmake common code.#536
Conversation
orduno
left a comment
There was a problem hiding this comment.
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 |
|
@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. |
* Factor out basic cmake common code. * Fixing the package name so it can include other common things in the future.
…ros-navigation#536) Co-authored-by: Filipe Pinto <filipe.pinto@globallogic.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v1...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Basic Info
Description of contribution in a few bullet points
CMakeLists.txtfiles 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.