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:
Armin Novak 2018-05-28 15:30:50 +02:00
parent e90184cc59
commit 4c0007b55a
1 changed files with 10 additions and 0 deletions

View File

@ -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})
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))
message(WARNING "-DWITH_GSSAPI=ON is set, but not GSSAPI implementation was found, disabling")
elseif(WITH_GSSAPI)