Commit 1a1e2d58 authored by Ghislain MARY's avatar Ghislain MARY

Fix build with ffmpeg, vpx or openh264.

parent 3c1979f7
...@@ -138,9 +138,9 @@ install(FILES ${LIBSWSCALE_HEADER_FILES} ...@@ -138,9 +138,9 @@ install(FILES ${LIBSWSCALE_HEADER_FILES}
) )
set(arch "x86") set(arch "x86")
if(CMAKE_GENERATOR MATCHES "^.* ARM$") if(CMAKE_GENERATOR_PLATFORM MATCHES "ARM")
set(arch "ARM") set(arch "ARM")
elseif(CMAKE_GENERATOR MATCHES "^.* Win64$") elseif(CMAKE_GENERATOR_PLATFORM MATCHES "x64")
set(arch "x64") set(arch "x64")
endif() endif()
......
...@@ -41,9 +41,9 @@ install(FILES ${HEADER_FILES} ...@@ -41,9 +41,9 @@ install(FILES ${HEADER_FILES}
) )
set(arch "x86") set(arch "x86")
if(CMAKE_GENERATOR MATCHES "^.* ARM$") if(CMAKE_GENERATOR_PLATFORM MATCHES "ARM")
set(arch "ARM") set(arch "ARM")
elseif(CMAKE_GENERATOR MATCHES "^.* Win64$") elseif(CMAKE_GENERATOR_PLATFORM MATCHES "x64")
set(arch "x64") set(arch "x64")
endif() endif()
......
...@@ -36,9 +36,9 @@ install(FILES ${HEADER_FILES} ...@@ -36,9 +36,9 @@ install(FILES ${HEADER_FILES}
) )
set(arch "x86") set(arch "x86")
if(CMAKE_GENERATOR MATCHES "^.* ARM$") if(CMAKE_GENERATOR_PLATFORM MATCHES "ARM")
set(arch "ARM") set(arch "ARM")
elseif(CMAKE_GENERATOR MATCHES "^.* Win64$") elseif(CMAKE_GENERATOR_PLATFORM MATCHES "x64")
set(arch "x64") set(arch "x64")
endif() endif()
......
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