Skip to content

Commit

Permalink
Move find_package calls
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner committed Oct 21, 2020
1 parent 2318c4f commit f7d55da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rclcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,6 @@ if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

# For benchmark tests. Currently these libraries can't be found if these calls
# are located in the CMakeLists.txt in test/rclcpp/benchmark, which implies
# some sort of scope issue
find_package(benchmark REQUIRED)
find_package(osrf_testing_tools_cpp REQUIRED)
find_package(performance_test_fixture REQUIRED)

add_subdirectory(test)
endif()

Expand Down
2 changes: 2 additions & 0 deletions rclcpp/test/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
find_package(performance_test_fixture REQUIRED)

# Give cppcheck hints about macro definitions coming from outside this package
get_target_property(
ament_cmake_cppcheck_ADDITIONAL_INCLUDE_DIRS
Expand Down

0 comments on commit f7d55da

Please sign in to comment.