Skip to content

Commit e7e92e4

Browse files
Apply suggestions from code review
reformatting and sort ascending Co-authored-by: Christoph Fröhlich <[email protected]>
1 parent 412f6cc commit e7e92e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hardware_interface/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ if(BUILD_TESTING)
7474
find_package(ament_cmake_gmock REQUIRED)
7575
find_package(ros2_control_test_assets REQUIRED)
7676
find_package(ament_index_cpp REQUIRED)
77-
find_package(PkgConfig REQUIRED)
78-
pkg_check_modules(LIBXML2 REQUIRED IMPORTED_TARGET libxml-2.0)
77+
find_package(LibXml2)
7978

8079
ament_add_gmock(test_macros test/test_macros.cpp)
8180
target_include_directories(test_macros PRIVATE include)
@@ -106,7 +105,10 @@ if(BUILD_TESTING)
106105

107106
# Test XML Schema Validator
108107
ament_add_gmock(test_validate_xml_schema test/test_validate_xml_schema.cpp)
109-
target_link_libraries(test_validate_xml_schema PkgConfig::LIBXML2 ament_index_cpp::ament_index_cpp)
108+
target_link_libraries(test_validate_xml_schema
109+
ament_index_cpp::ament_index_cpp
110+
LibXml2::LibXml2
111+
)
110112

111113
add_library(test_hardware_components SHARED
112114
test/test_hardware_components/test_single_joint_actuator.cpp

0 commit comments

Comments
 (0)