Fix #4672: Check if FFMPEG and OpenH264 detected
When FFMPEG or OpenH264 was requested but not detected abort the cmake run with an error.
This commit is contained in:
parent
e90184cc59
commit
4c0007b55a
@ -881,6 +881,16 @@ find_feature(FAAC ${FAAC_FEATURE_TYPE} ${FAAC_FEATURE_PURPOSE} ${FAAC_FEATURE_DE
|
|||||||
|
|
||||||
find_feature(GSSAPI ${GSSAPI_FEATURE_TYPE} ${GSSAPI_FEATURE_PURPOSE} ${GSSAPI_FEATURE_DESCRIPTION})
|
find_feature(GSSAPI ${GSSAPI_FEATURE_TYPE} ${GSSAPI_FEATURE_PURPOSE} ${GSSAPI_FEATURE_DESCRIPTION})
|
||||||
|
|
||||||
|
if (WITH_FFMPEG AND NOT FFmpeg_FOUND)
|
||||||
|
message(FATAL_ERROR "FFMPEG support requested but not detected")
|
||||||
|
endif()
|
||||||
|
set(WITH_FFMPEG ${FFmpeg_FOUND})
|
||||||
|
|
||||||
|
if (WITH_OPENH264 AND NOT OpenH264_FOUND)
|
||||||
|
message(FATAL_ERROR "OpenH264 support requested but not detected")
|
||||||
|
endif()
|
||||||
|
set(WITH_OPENH264 ${OpenH264_FOUND})
|
||||||
|
|
||||||
if ( (WITH_GSSAPI) AND (NOT GSS_FOUND))
|
if ( (WITH_GSSAPI) AND (NOT GSS_FOUND))
|
||||||
message(WARNING "-DWITH_GSSAPI=ON is set, but not GSSAPI implementation was found, disabling")
|
message(WARNING "-DWITH_GSSAPI=ON is set, but not GSSAPI implementation was found, disabling")
|
||||||
elseif(WITH_GSSAPI)
|
elseif(WITH_GSSAPI)
|
||||||
|
Loading…
Reference in New Issue
Block a user