Interesting. I was expecting the PATH_SUFFIXES to work on Windows. I thought I had tested this general technique, though maybe not with the Freetype module and maybe not 2.6.0. I think this may be a CMake bug, but I'm not an authority on the matter.
You might want to try a more generalized example (not freetype specific) and either repost the question for others to see, or file a bug report. -Eric On 9/17/08, klaas.holwerda <[EMAIL PROTECTED]> wrote: > Hi, > > I want to use FIND_PACKAGE( FREETYPE ) on windows. But it looks like it > does not work. > If i change in FindFreetype.cmake: > > FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h > $ENV{FREETYPE_DIR} > NO_DEFAULT_PATH > PATH_SUFFIXES include > ) > > to this: > > FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h > $ENV{FREETYPE_DIR}/include > NO_DEFAULT_PATH > ) > > It starts working. I tried setting FREETYPE_DIR environment variable > with and without a "/" at the end, but that is not solving it. > Even setting this: > > FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h > c:/soft/freetype/GnuWin32 > NO_DEFAULT_PATH > PATH_SUFFIXES include > ) > > does not work, so i think it is something within Cmake itself. Maybe > something with window paths?? > This is with Visual studio 8 + Cmake 2.6 patch 0 > > Klaas > > > > > > _______________________________________________ > CMake mailing list > CMake@cmake.org > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake