Unable to cmake on windows

skimon1 wrote on Wednesday, August 13, 2014:

When I follow the instructions on compiling with cmake on linux I have no problem , but on windows when i run cmake . I get the following error, does anyone know how to get around this.

C:\temp\glfw-master>cmake .
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– Using Win32 for window creation
– Using WGL for context creation
CMake Error at examples/CMakeLists.txt:16 (include_directories):
include_directories given empty-string as include directory.

– Configuring incomplete, errors occurred!

skimon1 wrote on Thursday, August 14, 2014:

seems to be an issue finding the opengl include directories (line 16 in CmakeLists.txt). I am not sure why since I have OpenGl headers installed as part of the windows sdk.

In order to build I had to comment out line 16:
14 if (NOT APPLE)
15 # HACK: This is NOTFOUND on OS X 10.8
16 #include_directories("${OPENGL_INCLUDE_DIR}")
17 endif()

elmindreda wrote on Thursday, August 14, 2014:

I broke that. I’ll fix it. Thanks for reporting it!

elmindreda wrote on Friday, August 15, 2014:

It should work now.