I suggest to use the CMake tool infrastructure so that more compilers and implementation variants can be supported for your software.
Would you also like to provide a script file "FindTinyXML.cmake"?
The C++ programming language has got a specific feature that results in technical challenges for linking of class libraries in a portable way.
It is called "name mangling".
Mismatches or disagreements about the applied naming conventions will result in error messages about undefined references in object files.
I hope that corresponding annoyances can be reduced by an improved software build process.
I guess that the appended approach contains some open issues. Fine-tuning will still be needed.
Would you like to integrate any adjustments from my update suggestion into your source code repository?
I would appreciate constructive feedback on this issue so that further improvements can be achieved.