From 88ef84c0533c6de6c03d72f351639721910e0338 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 15 Jun 2022 04:53:27 +0200 Subject: [PATCH] Make sure `pthread is not linked against when building with MinGW Co-authored-by: Ryan C. Gordon --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ec6e6e..cd8ae1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ if(WINRT) list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp) 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) if(PTHREAD_LIBRARY) set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})