Przeglądaj źródła

deps-libff: Fix mingw using wrong pthread header

When compiling under mingw it was using the w32-pthreads
instead of the shared mingw pthread library.
kc5nra 11 lat temu
rodzic
commit
e868af285e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      deps/libff/CMakeLists.txt

+ 2 - 2
deps/libff/CMakeLists.txt

@@ -6,10 +6,10 @@ find_package(FFMpeg REQUIRED
 
 include_directories(${FFMPEG_INCLUDE_DIRS})
 
-if(WIN32)
+if(WIN32 AND NOT MINGW)
 	include_directories(../w32-pthreads)
 	add_definitions(-Dinline=__inline)
-endif(WIN32)
+endif(WIN32 AND NOT MINGW)
 
 set(libff_HEADERS
 	libff/ff-callbacks.h