I added `${TinyXML_LIBRARIES}` both here, in the line below and in the `else`.
See if the logic is ok for you (I don't know all the possible build cases)