CMake's Find modules create some automatic variables, in your case there should be a FREETYPE_FOUND variable that you should be able to use to determine if the system FreeType was found successfully.<br><br><div class="gmail_quote">
On Tue, Aug 2, 2011 at 11:21 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
We recently added an example to the wiki that uses FreeType. When I<br>
try to compile the examples repository now, I get this error:<br>
<br>
In file included from /home/ddoria/src/VTK/Utilities/vtk_freetype.h:22:0,<br>
from /home/ddoria/src/VTK/Rendering/vtkFreeTypeUtilities.h:35,<br>
from /home/ddoria/src/WikiExamples/Cxx/Images/ImageText.cxx:6:<br>
/usr/include/ft2build.h:56:38: fatal error:<br>
freetype/config/ftheader.h: No such file or directory compilation<br>
terminated.<br>
<br>
I had fixed it when writing the ImageText example by playing with<br>
VTK_USE_SYSTEM_FREETYPE and some PATH variables, but is there way to<br>
check with CMake if FreeType was found correctly enough to continue,<br>
else do not build that example?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>