Skip to content

Add ament_generate_version_header#377

Merged
sloretz merged 4 commits intomasterfrom
sloretz__ament_generate_version_header
Feb 15, 2022
Merged

Add ament_generate_version_header#377
sloretz merged 4 commits intomasterfrom
sloretz__ament_generate_version_header

Conversation

@sloretz
Copy link
Copy Markdown
Contributor

@sloretz sloretz commented Feb 10, 2022

This adds a CMake macro that gives more control over the install path and integrates with modern CMake targets.

Part of ros2/ros2#1150 - this makes it easy for a package to control where the header is installed, and by-default installs it to an extra ${PROJECT_NAME} folder to avoid include directory search order issues when overriding packages from merged workspaces.

This adds a CMake macro that gives more control over the install path
and integrates with modern CMake targets.

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz sloretz added the enhancement New feature or request label Feb 10, 2022
@sloretz sloretz self-assigned this Feb 10, 2022
@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Feb 11, 2022

CI (build: --packages-up-to rclcpp test: --packages-select ament_cmake_gen_version_h rclcpp)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@wjwwood
Copy link
Copy Markdown
Contributor

wjwwood commented Feb 14, 2022

Is there a pull request updating at least one place that this is used? Like in rclcpp?

@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Feb 14, 2022

Is there a pull request updating at least one place that this is used? Like in rclcpp?

@wjwwood I opened one: ros2/rclcpp#1886

I'll re-run CI with it

@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Feb 14, 2022

CI re-run

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@wjwwood
Copy link
Copy Markdown
Contributor

wjwwood commented Feb 14, 2022

Should we deprecate the old style?

Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Feb 14, 2022

Should we deprecate the old style?

Yeah, I think so. Added a deprecation to ament_cmake_gen_version_h in f5c2b40

@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Feb 15, 2022

CI re-run

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status - failed due to Infra issue
    • Re-run: Build Status

@sloretz sloretz merged commit 031e37e into master Feb 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the sloretz__ament_generate_version_header branch February 15, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants