wswatson / freetype-gl

Automatically exported from code.google.com/p/freetype-gl
Other
0 stars 0 forks source link

Minor fix for CMake on Windows #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Build on Windows with cmake, e.g., 
mkdir build-msvc
cd build-msvc
cmake .. -G "Visual Studio 10 Win64"

What is the expected output? What do you see instead?

Fails to find includes for GLUT and GLEW

What version of the product are you using? On what operating system?

rev226, Windows 7, 64-bit

Please provide any additional information below.

There's a mismatch between the "DIR" variable names and "DIRS", and 
FREETYPE_INCLUDE_DIRS is omitted. They need to match the vars used in the 
INCLUDE_DIRECTORIES command (line 75).  A simple patch that fixes the problem:

Index: CMakeLists.txt
===================================================================
44c46
<   SET( GLUT_INCLUDE_DIR

---
>   SET( GLUT_INCLUDE_DIRS
48c50
<     SET( GLEW_INCLUDE_DIR

---
>     SET( GLEW_INCLUDE_DIRS
55a58
> SET( FREETYPE_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIR_ft2build} 
${FREETYPE_INCLUDE_DIR_freetype2} )

Original issue reported on code.google.com by brian.fo...@gmail.com on 19 Jul 2013 at 3:41

GoogleCodeExporter commented 9 years ago
Thanks, it has been fixed !

Original comment by Nicolas.Rougier@gmail.com on 26 Jul 2013 at 7:35