Don't use an option for WITH_GFX_H264
CMAKE_DEPENDENT_OPTION the option is initialized on the first run and then saved. Later configuration changes are not considered anymore. Therefor use an variable instead of an option here.
This commit is contained in:
parent
42fdb0b8d3
commit
1a4cfa05cc
@ -784,6 +784,12 @@ if (TARGET_ARCH MATCHES "sparc")
|
||||
set(HAVE_ALIGNED_REQUIRED 1)
|
||||
endif()
|
||||
|
||||
if (WITH_X264 OR WITH_OPENH264 OR WITH_MEDIA_FOUNDATION OR WITH_FFMPEG)
|
||||
set(WITH_GFX_H264 ON)
|
||||
else()
|
||||
set(WITH_GFX_H264 OFF)
|
||||
endif()
|
||||
|
||||
# Android expects all libraries to be loadable
|
||||
# without paths.
|
||||
if (ANDROID)
|
||||
|
@ -50,8 +50,6 @@ else()
|
||||
option(WITH_MEDIA_FOUNDATION "Enable H264 media foundation decoder." ON)
|
||||
endif()
|
||||
endif()
|
||||
CMAKE_DEPENDENT_OPTION(WITH_GFX_H264 "Build GFX H264 support. A backend (OpenH264|FFMPEG|X264|MediaFoundation) must also be compiled in." ON
|
||||
"WITH_X264 OR WITH_OPENH264 OR WITH_MEDIA_FOUNDATION OR WITH_FFMPEG" OFF)
|
||||
|
||||
if(WIN32 AND NOT UWP)
|
||||
option(WITH_NATIVE_SSPI "Use native SSPI modules" ON)
|
||||
|
Loading…
Reference in New Issue
Block a user