-
Notifications
You must be signed in to change notification settings - Fork 106
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
Conversation
…t_add_gtest statement Signed-off-by: Michael Jeronimo <michael.jeronimo@openrobotics.org>
sensor_msgs/CMakeLists.txt
Outdated
@@ -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() |
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.
I think only the find_package(ament_cmake_gtest)
line should be moved. The linter tests can be run without the C++ typesupport target.
Signed-off-by: Michael Jeronimo <michael.jeronimo@openrobotics.org>
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 with green CI
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 with green CI.
All right, this is all happy, so merging. Thanks for the fix. |
The find_package statements should be before the use of the ament_gtest statement.
Signed-off-by: Michael Jeronimo michael.jeronimo@openrobotics.org