Make sure `pthread is not linked against when building with MinGW
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
This commit is contained in:
parent
9bc66b6469
commit
88ef84c053
|
@ -57,7 +57,7 @@ if(WINRT)
|
||||||
list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
|
list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT MSVC AND NOT APPLE) # (MingW and such might be UNIX _and_ WINDOWS!)
|
if(UNIX AND NOT MSVC AND NOT MINGW AND NOT APPLE) # (MingW and such might be UNIX _and_ WINDOWS!)
|
||||||
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})
|
||||||
|
|
Loading…
Reference in New Issue