--- gui/test/benchmark/simple/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
+++ gui/test/benchmark/simple/CMakeLists.txt
@@ -17,7 +17,7 @@ if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
     target_link_libraries(benchmark-simple ${PCRE_LIBRARY})
 endif()
 if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
-    target_link_libraries(benchmark-simple ${tinyxml2_LIBRARIES})
+    target_link_libraries(benchmark-simple tinyxml2::tinyxml2)
 endif()
 
 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
