summaryrefslogtreecommitdiff
path: root/CMake/resources.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/resources.cmake')
-rw-r--r--CMake/resources.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMake/resources.cmake b/CMake/resources.cmake
index 37c0c08ef..4f380ecd5 100644
--- a/CMake/resources.cmake
+++ b/CMake/resources.cmake
@@ -30,7 +30,6 @@ find_file(HAVE_LIBPNG_PNG_H libpng/png.h)
find_file(HAVE_LOCALE_H locale.h)
find_file(HAVE_OPENGL_GLU_H OpenGL/glu.h)
find_file(HAVE_PNG_H png.h)
-find_file(HAVE_PTHREAD_H pthread.h)
find_file(HAVE_STDIO_H stdio.h)
find_file(HAVE_STRINGS_H strings.h)
find_file(HAVE_SYS_SELECT_H sys/select.h)
@@ -38,6 +37,13 @@ find_file(HAVE_SYS_STDTYPES_H sys/stdtypes.h)
find_file(HAVE_X11_XREGION_H X11/Xregion.h)
find_path(HAVE_XDBE_H Xdbe.h PATH_SUFFIXES X11/extensions extensions)
+if (WIN32 AND NOT CYGWIN)
+ # we don't use pthreads on Windows (except for Cygwin, see options.cmake)
+ set(HAVE_PTHREAD_H 0)
+else ()
+ find_file(HAVE_PTHREAD_H pthread.h)
+endif (WIN32 AND NOT CYGWIN)
+
if (MSVC)
message(STATUS "Note: The following three headers should all be found!")
message(STATUS "HAVE_GL_GL_H = '${HAVE_GL_GL_H}'")