Skip to content
Permalink
Browse files
From stable-2.0: explicitly check for pthread library, and link again…
…st it.
  • Loading branch information
icculus committed Nov 26, 2012
1 parent 7be7651 commit 06edd385fcb24164d34562474949c68f3ae315ee
Showing with 5 additions and 0 deletions.
  1. +5 −0 CMakeLists.txt
@@ -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()

0 comments on commit 06edd38

Please sign in to comment.