Skip to content
Permalink
Browse files
Only check for pthread library if pthread.h was found.
  • Loading branch information
icculus committed Nov 26, 2012
1 parent 06edd38 commit 8156bd219c4b307c53238d90c4f9aa8644f55e38
Showing with 4 additions and 5 deletions.
  1. +4 −5 CMakeLists.txt
@@ -176,11 +176,10 @@ if(UNIX)
check_include_file(pthread.h HAVE_PTHREAD_H)
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})
find_library(PTHREAD_LIBRARY pthread)
if(PTHREAD_LIBRARY)
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
endif()
endif()
endif()
endif()

0 comments on commit 8156bd2

Please sign in to comment.