CMake-pthread-fix for WIN32 builds

stable-5.2
David Dormagen 2009-07-03 14:19:31 +02:00
parent 643eb5ee8c
commit 199cf0d5a6
1 changed files with 3 additions and 1 deletions

View File

@ -519,7 +519,9 @@ include(FindPNG)
include(FindZLIB)
include(FindThreads)
SET(HAVE_PTHREAD ${CMAKE_USE_PTHREADS_INIT})
if(${CMAKE_USE_PTHREADS_INIT} AND NOT WIN32)
SET(HAVE_PTHREAD 1)
endif()
# isilkor 09-05-29: FindFreetype only checks for no-ver and 219
find_library(FREETYPE_LIBRARY NAMES freetype239)