<div dir="ltr">I found on Linux, FindFreetype is not found because it is invoked the lower-case "f'.<div>Propose to change the name to Findfreetype.</div><div><br></div><div><div>For three mingw/msys installations on drives C:, D:, and E:, I </div>
<div>found that installation of freetype occured in different fashions,</div><div>as follows:</div><div>freetype2.h: </div><div> C:/mingw/msys/1.0/local/include/freetype2</div><div> D:/Mingw/msys/1.0/local/include/freetype2/freetype</div>
<div> E:/mingw/msys/1.0/local/include/freetype2/freetype</div><div><br></div><div>ft2build,h:</div><div> C:/mingw/msys/1.0/local/include/freetype2</div><div> D:/Mingw/msys/1.0/local/include</div><div> E:/mingw/msys/1.0/local/include</div>
<div><br></div><div>D: and E: systems already found freetype but C: required</div><div>the freetype2 search to be as follows:</div><div><br></div><div>find_path(FREETYPE_INCLUDE_DIR_freetype2 config/ftheader.h</div><div>         - etc - </div>
<div>  PATH_SUFFIXES include/freetype2 include/freetype include/freetype2/freetype</div><div>)</div><div><br></div><div>when the paths have been set up properly we find what we want.</div><div>here is the chatter from my debug run:</div>
<div><br></div><div>--  project(test_test C) has just been called. results: </div><div> PROJECT_SOURCE_DIR = F:/test </div><div> CMAKE_SYSTEM_NAME = Windows</div><div>WIN32 1 MINGW? 1 MSYS? 1 </div><div>--  =======================================================</div>
<div> Lists.txt>check this out: LDFLAGS=-LE:/MinGW/local32/lib </div><div> Lists.txt> LD_LIBRARY_PATH=</div><div> Lists.txt> CMAKE_C_FLAGS = -IE:/MinGW/local32/include </div><div> Lists.txt> CFLAGS=-IE:/MinGW/local32/include </div>
<div> Lists.txt>     CC=E:/mingw/mingw32/bin/gcc.exe </div><div> Lists.txt> CXXFLAGS=-IE:/MinGW/local32/include  </div><div> Lists.txt> CPPFLAGS=-IE:/MinGW/local32/include</div><div>--  Lists.txt>    WIN32?1 MINGW?1 MSYS?1 </div>
<div>-- </div><div>CMAKE_SYSTEM_PREFIX_PATH: </div><div> E:/mingw/msys/1.0/local;E:/mingw/msys/1.0 </div><div>CMAKE_SYSTEM_LIBRARY_PATH: </div><div> E:/mingw/msys/1.0/local/lib;E:/mingw/msys/1.0/lib;E:/mingw/msys/1.0/lib/w32api </div>
<div>========================================================</div><div>-- FREETYPE_INCLUDE_DIR_ft2build? E:/mingw/msys/1.0/local/include</div><div>-- FREETYPE_INCLUDE_DIR_freetype2? E:/mingw/msys/1.0/local/include/freetype2/freetype</div>
<div>-- FREETYPE_LIBRARY? E:/mingw/msys/1.0/local/lib/libfreetype.dll.a</div><div>-- CMAKE_SYSTEM_PREFIX_PATH? E:/mingw/msys/1.0/local;E:/mingw/msys/1.0</div><div>-- CMAKE_SYSTEM_LIBRARY_PATH? E:/mingw/msys/1.0/local/lib;E:/mingw/msys/1.0/lib;E:/mingw/msys/1.0/lib/w32api</div>
<div>-- CMAKE_SYSTEM_INCLUDE_PATH? E:/mingw/msys/1.0/local/include;E:/mingw/msys/1.0/include;E:/mingw/msys/1.0/include/w32api</div><div>-- Found Freetype: E:/mingw/msys/1.0/local/lib/libfreetype.dll.a  </div><div>-- FREETYPE FOUND? TRUE</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 7:43 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/25/2014 01:05 AM, Taylor Holberton wrote:<br>
> Here's some patches for the FindFreetype module.<br>
> The first few patches change formatting. While the<br>
> last one extends the functionality.<br>
<br>
Thanks.  I've applied the style changes:<br>
<br>
 FindFreetype: Add newlines to reduce code width<br>
 <a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4ad6dace" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4ad6dace</a><br>
<br>
 FindFreetype: Move PATH_SUFFIXES argument for more consistency<br>
 <a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=836a28d5" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=836a28d5</a><br>
<br>
 FindFreetype: Use lower-case name in call to FPHSA<br>
 <a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=444f8801" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=444f8801</a><br>
<br>
 FindFreetype: Indent with 2 spaces instead of 4<br>
 <a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=58f7baab" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=58f7baab</a><br>
<br>
In the last change, the explicit CMAKE_SYSTEM_PREFIX_PATH<br>
reference should not be necessary.  The commands already<br>
use that variable internally to generate paths.  Just add<br>
PATH_SUFFIXES to refer to the path under the install prefix<br>
at which the freetype2 headers exist.<br>
<br>
Thanks,<br>
-Brad<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers</a><br>
</blockquote></div><br></div>