# Unable to cmake on windows

**URL:** <https://discourse.glfw.org/t/unable-to-cmake-on-windows/86>\
**Category:** support\
**Created:** [August 13, 2014, 8:58pm UTC](https://discourse.glfw.org/t/unable-to-cmake-on-windows/86 "2014-08-13T20:58:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 13, 2014, 8:58pm UTC](https://discourse.glfw.org/t/unable-to-cmake-on-windows/86/1 "2014-08-13T20:58:24Z")

</div>

**[skimon1](https://sourceforge.net/u/skimon1/)** wrote on [Wednesday, August 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/49ce98be/#f034):

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 14, 2014, 2:33pm UTC](https://discourse.glfw.org/t/unable-to-cmake-on-windows/86/2 "2014-08-14T14:33:45Z")

</div>

**[skimon1](https://sourceforge.net/u/skimon1/)** wrote on [Thursday, August 14, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/49ce98be/#42f4):

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()

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 14, 2014, 6:20pm UTC](https://discourse.glfw.org/t/unable-to-cmake-on-windows/86/3 "2014-08-14T18:20:45Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Thursday, August 14, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/49ce98be/#8bf5):

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 15, 2014, 1:19pm UTC](https://discourse.glfw.org/t/unable-to-cmake-on-windows/86/4 "2014-08-15T13:19:30Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Friday, August 15, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/49ce98be/#65e6):

It should work now.
