Fix build with MinGW

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Martin Hauke 7 years ago committed by Steve Markgraf
parent d93819d29d
commit 326b0e3acc
  1. 2
      CMakeLists.txt

@ -65,7 +65,9 @@ endif()
######################################################################## ########################################################################
find_package(PkgConfig) find_package(PkgConfig)
find_package(LibUSB) find_package(LibUSB)
if(WIN32 AND NOT MINGW)
set(THREADS_USE_PTHREADS_WIN32 true) set(THREADS_USE_PTHREADS_WIN32 true)
endif()
find_package(Threads) find_package(Threads)
if(NOT LIBUSB_FOUND) if(NOT LIBUSB_FOUND)

Loading…
Cancel
Save