File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,7 @@ if(BUILD_TESTING)
74
74
find_package (ament_cmake_gmock REQUIRED )
75
75
find_package (ros2_control_test_assets REQUIRED )
76
76
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 )
79
78
80
79
ament_add_gmock (test_macros test /test_macros.cpp )
81
80
target_include_directories (test_macros PRIVATE include )
@@ -106,7 +105,10 @@ if(BUILD_TESTING)
106
105
107
106
# Test XML Schema Validator
108
107
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
+ )
110
112
111
113
add_library (test_hardware_components SHARED
112
114
test /test_hardware_components/test_single_joint_actuator.cpp
You can’t perform that action at this time.
0 commit comments