--- CMakeLists.txt.orig	2024-05-07 15:55:05 UTC
+++ CMakeLists.txt
@@ -834,7 +834,7 @@ if(ENABLE_TINYXML2)
 endif()
 
 if(ENABLE_TINYXML2)
-  find_library(TINYXML2_LIB mathex PATH_SUFFIXES lib)
+  find_library(TINYXML2_LIB tinyxml2 PATH_SUFFIXES lib)
   find_path(TINYXML2_INC "tinyxml2.h" PATH_SUFFIXES src include)
   if(ENABLE_SYSTEM_CONTRIB AND TINYXML2_LIB AND TINYXML2_INC)
     list(APPEND EXTERNAL_LIBRARIES ${TINYXML2_LIB})
