build_environment: ffmpeg support x86 builds on windows.
authorRay Molenkamp <github@lazydodo.com>
Sun, 26 Aug 2018 01:37:30 +0000 (19:37 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sun, 26 Aug 2018 01:37:30 +0000 (19:37 -0600)
build_files/build_environment/cmake/ffmpeg.cmake

index b1e69b794df135b0e54125e78b89330a4fde105e..b0c76175508089d48d9249f761ce917185803dee 100644 (file)
@@ -38,6 +38,12 @@ if(WIN32)
                --disable-pthreads
                --enable-libopenjpeg
        )
+       if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
+               set(FFMPEG_EXTRA_FLAGS
+                       ${FFMPEG_EXTRA_FLAGS}
+                       --x86asmexe=yasm
+               )
+       endif()
 else()
        set(FFMPEG_EXTRA_FLAGS
                ${FFMPEG_EXTRA_FLAGS}