--- test/CMakeLists.txt.orig	2022-03-19 11:35:06 UTC
+++ test/CMakeLists.txt
@@ -26,7 +26,7 @@ if (BUILD_TESTS)
         endif()
     endif()
     if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
-        target_link_libraries(testrunner ${tinyxml2_LIBRARIES})
+        target_link_libraries(testrunner tinyxml2::tinyxml2)
     endif()
 
     if (NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
