Only check for pthread library if pthread.h was found.
This commit is contained in:
parent
06edd385fc
commit
8156bd219c
|
@ -176,13 +176,12 @@ if(UNIX)
|
||||||
check_include_file(pthread.h HAVE_PTHREAD_H)
|
check_include_file(pthread.h HAVE_PTHREAD_H)
|
||||||
if(HAVE_PTHREAD_H)
|
if(HAVE_PTHREAD_H)
|
||||||
set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
|
set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
|
||||||
endif()
|
|
||||||
|
|
||||||
find_library(PTHREAD_LIBRARY pthread)
|
find_library(PTHREAD_LIBRARY pthread)
|
||||||
if(PTHREAD_LIBRARY)
|
if(PTHREAD_LIBRARY)
|
||||||
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
|
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WINDOWS)
|
if(WINDOWS)
|
||||||
|
|
Loading…
Reference in New Issue