Skip to content

Commit

Permalink
From stable-2.0: explicitly check for pthread library, and link again…
Browse files Browse the repository at this point in the history
…st it.
  • Loading branch information
icculus committed Nov 26, 2012
1 parent 7be7651 commit 06edd38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -177,6 +177,11 @@ if(UNIX)
if(HAVE_PTHREAD_H)
set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
endif()

find_library(PTHREAD_LIBRARY pthread)
if(PTHREAD_LIBRARY)
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
endif()
endif()
endif()

Expand Down

0 comments on commit 06edd38

Please sign in to comment.