Commit eeab8d47 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Force inclusion of windows.h when building ffmpeg on Windows.

parent 18140cea
......@@ -80,6 +80,7 @@ else()
if(WIN32)
set(EP_ffmpeg_TARGET_OS "mingw32")
set(EP_ffmpeg_EXTRA_CFLAGS "-include windows.h")
set(EP_ffmpeg_EXTRA_LDFLAGS "-static-libgcc")
set(EP_ffmpeg_PATCH_COMMAND ${EP_ffmpeg_PATCH_COMMAND} "COMMAND" "${PATCH_PROGRAM}" "-p1" "-i" "${CMAKE_CURRENT_SOURCE_DIR}/builders/ffmpeg/mingw-no-lib.patch" ${EP_ffmpeg_PATCH_OPTIONS})
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment