Explorar el Código

From stable-2.0: explicitly check for pthread library, and link against it.

Ryan C. Gordon hace 13 años
padre
commit
06edd385fc
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      CMakeLists.txt

+ 5 - 0
CMakeLists.txt

@@ -177,6 +177,11 @@ if(UNIX)
         if(HAVE_PTHREAD_H)
         if(HAVE_PTHREAD_H)
             set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
             set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
         endif()
         endif()
+
+        find_library(PTHREAD_LIBRARY pthread)
+        if(PTHREAD_LIBRARY)
+            set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
+        endif()
     endif()
     endif()
 endif()
 endif()