CMakeLists.txt
changeset 1317 4ea85d1717b0
parent 1315 c686e4f84ab5
child 1318 5488d36ff8b5
--- a/CMakeLists.txt	Sat Nov 24 17:27:19 2012 -0500
+++ b/CMakeLists.txt	Sun Nov 25 21:51:43 2012 -0500
@@ -177,6 +177,11 @@
         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()