Fix build with MinGW

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Martin Hauke 5 years ago committed by Steve Markgraf
parent d93819d29d
commit 326b0e3acc
  1. 4
      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)

Loading…
Cancel
Save