From 47c86b6cbe8d90338f6b88ae2f60cabf856fcffe Mon Sep 17 00:00:00 2001 From: martell Date: Wed, 4 Feb 2015 05:10:20 +0000 Subject: [PATCH] libobs: avoid using to w32-pthreads for mingw-w64 mingw-w64 provides its own pthreads library. also change some link libs as mingw-w64 libraries are not postfixed .lib --- libobs/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt index 223755914..cd8131b8c 100644 --- a/libobs/CMakeLists.txt +++ b/libobs/CMakeLists.txt @@ -46,9 +46,12 @@ if(WIN32) util/threading-windows.c util/pipe-windows.c util/platform-windows.c) - set(libobs_PLATFORM_DEPS - w32-pthreads - winmm.lib) + set(libobs_PLATFORM_DEPS winmm) + if(MSVC) + set(libobs_PLATFORM_DEPS + ${libobs_PLATFORM_DEPS} + w32-pthreads) + endif() elseif(APPLE) set(libobs_PLATFORM_SOURCES obs-cocoa.c