aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2018-05-01 14:04:41 +0200
committerSteve Markgraf <steve@steve-m.de>2018-05-01 14:13:00 +0200
commit326b0e3accc21b47e7b4bc118ed4c4b55b914127 (patch)
tree009e2ac5c0f38d80ee867e2892f0bb7812f04803
parentd93819d29d8971187df7b8c770af462d769810de (diff)
Fix build with MinGW
Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6fb801..abc8f9b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,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)