<div dir="ltr">This week I played with xerces too :) but on windows, so I suppose there will be different view point on this problem.<br><br>1) I think using FIND_PATH(XERCESC_INCLUDE_DIR xercesc/util/XercesVersion.hpp) is slightly better, because there may be different xercesc files or directories.<br>

<br>2) SET(XERCESC_NAMES xerces-c xerces-c_2)<br>On windows, dlls are called xerces-c_2_8.dll and xerces-c_2_8D.dll (though their import conterparts are xerces-c_2.lib and xerces-c_2D.lib, so there should not be a problem on Visual Studio, but I don&#39;t know how they are called for mingw).<br>

Next, because xerces-c provides debug and release libraries, I can propose playing with imported targets (<a href="http://www.cmake.org/Wiki/CMake_2.6_Notes#Importing_Targets">http://www.cmake.org/Wiki/CMake_2.6_Notes#Importing_Targets</a>), this may become good reference.<br>
<br>So, for completeness, you can try looking for debug library too, and then use (as it done in FindBoost.cmake).<br>SET( XERCESC_LIBRARIES optimized ${XERCESC_LIBRARY} debug ${XERCESC_LIBRARY_DEBUG})<br><br>Of course, if you don&#39;t want to play with new features, your file will work in 90% cases :)<br>
<br><div class="gmail_quote">On Thu, Sep 25, 2008 at 1:48 PM, Aleksandar Samardzic <span dir="ltr">&lt;<a href="mailto:asamardzic@gmail.com" target="_blank">asamardzic@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Attached is a proposal for Xerces-C XML parser<br>
(<a href="http://xerces.apache.org/xerces-c/" target="_blank">http://xerces.apache.org/xerces-c/</a>) module for CMake; the module is<br>
built after zlib module from CMake distribution.<br>
<br>
Regards,<br>
Alex<br>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>