Hi Paul + Mattias,
I just checked what CMake 2.6.2 has for it's FindFreetype.cmake and
the list of vars is:
# FREETYPE_LIBRARIES, the library to link against
# FREETYPE_FOUND, if false, do not try to link to FREETYPE
# FREETYPE_INCLUDE_DIRS, where to find headers.
# This is the concatenation of the paths:
# FREETYPE_INCLUDE_DIR_ft2build
# FREETYPE_INCLUDE_DIR_freetype2
The OSG's CMakeModules/FindFreeType.cmake (note case difference) also
only defines FREETYPE_INCLUDE_DIRS.
And the CMakeModules/Find3rdpartyDependencies.cmake 's FreeType entries read:
FIND_DEPENDENCY(FREETYPE ft2build.h
"freetype;freetype234;freetype234MT;freetype235" ${OSG_3RDPARTY_BIN}
"_D")
IF(FREETYPE_FOUND)
#forcing subsequent FindFreeType stuff to not search for
other variables.... kind of a hack
SET(FREETYPE_INCLUDE_DIR_ft2build ${FREETYPE_INCLUDE_DIR}
CACHE PATH "")
SET(FREETYPE_INCLUDE_DIR_freetype2 ${FREETYPE_INCLUDE_DIR}
CACHE PATH "")
MARK_AS_ADVANCED(FREETYPE_INCLUDE_DIR_ft2build
FREETYPE_INCLUDE_DIR_freetype2)
ENDIF(FREETYPE_FOUND)
I can't find any reference to FREETYPE_INCLUDE_DIR anywhere. The
Find3rdPartyDependnencies.cmake doesn't contain a
FREETYPE_INCLUDE_DIRS either, but perhaps the FindFreeType.cmake
should later set this.
Robert.
On Thu, Feb 26, 2009 at 12:46 AM, Mattias Helsing <[email protected]> wrote:
> Hi Paul,
>
> I think I've seen this reported before so I decided to review the
> files involved. I'm not at a windows machine so can't test this now
> but in osgPlugins/freetype/CMakeLists.txt it FREETYPE_INCLUDE_DIRS
> which might be right on platforms other than windows, but when using
> 3rdParty deps it should read FREETYPE_INCLUDE_DIR I think. I'll check
> this tomorrow when at a windows machine.
>
> I discovered a flaw when using vc90 and my binaries. They have
> freetype-2.3.7 which isn't searched for by
> Find3rdPArtyDependencies.cmake. Will post a submission for that
> tomorrow.
>
> cheers
> Mattias
>
> On Wed, Feb 25, 2009 at 11:23 PM, Paul Martz <[email protected]> wrote:
>> (Well, new to me at least, maybe other have seen this?)
>>
>> While trying to set up a new build dir, I obtained 3rdParty dependencies for
>> both VS8 and VS9 and made them siblings to my OpenSceneGraph directory, and
>> named one of them "3rdParty-VS8" and the other "3rdParty-VS9". While running
>> CMake for OSG, I set the ACTUAL_3RDPARTY_DIR to "3rdParty-VS8", configured,
>> and went into Visual Studio.
>>
>> Oddly, the FreeType plugin project was missing - CMake didn't create it, as
>> if it couldn't find the FreeType library or include dir. I went back into
>> CMake and verified it had found the FreeType library and include, but for
>> some reason it refused to create the VS project file.
>>
>> I resolved the issue by renaming "3rdParty-VS8" to simply "3rdParty".
>>
>> Any idea why the non-standard name for the 3rdParty dir would cause this
>> failure?
>>
>> Paul Martz
>> Skew Matrix Software LLC
>> http://www.skew-matrix.com
>> +1 303 859 9466
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org