Skip to content

Commit

Permalink
Explicitly check for pthread library, and link against it.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 23, 2012
1 parent ca561d6 commit 783d661
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)

Expand Down

0 comments on commit 783d661

Please sign in to comment.