Fix build with MinGW

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Martin Hauke 2018-05-01 14:04:41 +02:00 committed by Steve Markgraf
parent d93819d29d
commit 326b0e3acc

View File

@ -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)