From 0325fa9496e622200506ead78db8df2209fb39d2 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Tue, 24 Apr 2018 20:47:38 +0200 Subject: Fix build with MinGW Signed-off-by: Steve Markgraf --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 813e5c7..0a3b5e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,9 @@ endif() ######################################################################## find_package(PkgConfig) find_package(LibUSB) -set(THREADS_USE_PTHREADS_WIN32 true) +if(WIN32 AND NOT MINGW) + set(THREADS_USE_PTHREADS_WIN32 true) +endif() find_package(Threads) if(NOT LIBUSB_FOUND) -- cgit v1.2.3