Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only check for pthread library if pthread.h was found.
  • Loading branch information
icculus committed Nov 26, 2012
1 parent 06edd38 commit 8156bd2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 8156bd2

Please sign in to comment.