Skip to content
Permalink
Browse files
Explicitly check for pthread library, and link against it.
  • Loading branch information
icculus committed Oct 23, 2012
1 parent ca561d6 commit 783d661bf8a6488a8ea229a69e13d568e728ae3f
Showing with 5 additions and 0 deletions.
  1. +5 −0 CMakeLists.txt
@@ -170,6 +170,11 @@ IF(UNIX)
IF(HAVE_PTHREAD_H)
SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
ENDIF(HAVE_PTHREAD_H)

FIND_LIBRARY(PTHREAD_LIBRARY pthread)
IF(PTHREAD_LIBRARY)
SET(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
ENDIF(PTHREAD_LIBRARY)
ENDIF(BEOS)
ENDIF(UNIX)

0 comments on commit 783d661

Please sign in to comment.