<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/3/22 Mateusz Loskot <span dir="ltr"><<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I'm trying to build software which uses libE57 library which has<br>
Xerces as dependency.<br>
I build Xerces too as part of my project and I deploy it in custom locations<br>
and Xerces library has custom name.<br>
<br>
libE57 provides FindXerces.cmake [1] and I've been trying to figure<br>
out how I can<br>
make this module find Xerces I provide, I tried to explicitly the two variables:<br>
Xerces_INCLUDE_DIR<br>
Xerces_LIBRARY<br>
on invocation of cmake, but obviously this FindXerces.cmake is still nagging me<br>
about XERCES_ROOT<br>
<br>
This is first time when I have to deal with CMake-based software and custom<br>
names and locations of libraries, so I'm not sure either I'm missing some<br>
important tricks here or this FindXerces.cmake is just poorly written module<br>
and it does not check if user passes <NAME>_INCLUDE or <NAME>_LIBRARY directly.<br>
<br>
I know I can also use CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH,<br>
but how to deal with custom library names, when this module expects<br>
two options only [2].<br>
<br>
Could anyone advise about workaround?<br>
<br>
Is this an issue in the FindXerces.cmake and would you say it's worth<br>
to submit bug report to libE57?<br>
<br>
[1] <a href="http://sourceforge.net/p/e57-3d-imgfmt/code/331/tree/trunk/cmake/Modules/FindXerces.cmake" target="_blank">http://sourceforge.net/p/e57-3d-imgfmt/code/331/tree/trunk/cmake/Modules/FindXerces.cmake</a><br>
[2] <a href="http://sourceforge.net/p/e57-3d-imgfmt/code/331/tree/trunk/cmake/Modules/FindXerces.cmake#l44" target="_blank">http://sourceforge.net/p/e57-3d-imgfmt/code/331/tree/trunk/cmake/Modules/FindXerces.cmake#l44</a><br>
<br>
Best regards,<br>
--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
--<br>
<br clear="all"></blockquote></div>Hi Mateusz,<br><br></div><div class="gmail_extra">FindXerces is not part of officially supported modules, so you're on your own here :-)<br></div><div class="gmail_extra">As workaround - try provide for script you're pointed with two more parameters _LIBRARY_DEBUG & _LIBRARY_RELEASE.<br>
AFAIR you need all vars be set to avoid error message from<span class=""> "find_package_handle_standard_args"</span><span class=""></span>.<br>Custom name add to NAMES.<br></div><div class="gmail_extra"><br>HTH.<br>
</div><div class="gmail_extra"><br>-- <br>Best Regards,<br>Sergei Nikulov
</div></div>