im trying to create a configuration for glfw after cloning the source from https://github.com/glfw/glfw.git . I get the error message only in windows (on ubuntu linux I have no problems). I suspect a problem with my CMake, but I'm not sure.
When I run CMake from the glfw root directory, I get the following error using Cmake 2.8
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!
Then I tried upgrading to CMake last 3.0.1, I still get an error message, but with a bit more information:
$ cmake .
-- Building for: Visual Studio 11 2012
-- The C compiler identification is MSVC 17.0.61030.0
-- Check for working C compiler using: Visual Studio 11 2012
-- Check for working C compiler using: Visual Studio 11 2012 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found OpenGL: opengl32
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- 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!
See also "C:/temp/glfw/CMakeFiles/CMakeOutput.log".
See also "C:/temp/glfw/CMakeFiles/CMakeError.log".
If I check CMakeError.log, it seems to mention the missing pthreads (which does not make sense to me, since these are windows and pthreads.hshould probably only be used on posix-based OS)
CheckIncludeFiles.c
CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h'
: No such file or directory [C:\temp\glfw\CMakeFiles\CMakeTmp\cmTryCompileExec38
59330081.vcxproj]
Done Building Project "C:\temp\glfw\CMakeFiles\CMakeTmp\cmTryCompileExec38593300
81.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\temp\glfw\CMakeFiles\CMakeTmp\cmTryCompileExec3859330081.vcxproj" (default t
arget) (1) ->
(ClCompile target) ->
CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.
h': No such file or directory [C:\temp\glfw\CMakeFiles\CMakeTmp\cmTryCompileExec
3859330081.vcxproj]
0 Warning(s)
1 Error(s)
- , ? glfw irc , , , , . , , CMake , glfw.
!