Skip to content
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

Move the find_package statements for BUILD_TESTING #186

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

mjeronimo
Copy link
Contributor

The find_package statements should be before the use of the ament_gtest statement.

Signed-off-by: Michael Jeronimo michael.jeronimo@openrobotics.org

…t_add_gtest statement

Signed-off-by: Michael Jeronimo <michael.jeronimo@openrobotics.org>
@@ -79,6 +79,10 @@ if(cpp_typesupport_target)
ament_export_targets(export_${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only the find_package(ament_cmake_gtest) line should be moved. The linter tests can be run without the C++ typesupport target.

sensor_msgs/CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Michael Jeronimo <michael.jeronimo@openrobotics.org>
Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with green CI

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with green CI.

@clalancette
Copy link
Contributor

CI:

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

And a special CI, only building against CycloneDDS (which should trigger the original bug):

  • Linux Build Status

@clalancette
Copy link
Contributor

All right, this is all happy, so merging. Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants