cmake: Check for provider instead of feature

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-06-23 17:09:18 +02:00 committed by Xaymar
parent 7adccbe63e
commit cfd8713ca2

View file

@ -693,7 +693,7 @@ function(feature_filter_video_superresolution RESOLVE)
endif() endif()
# Verify that we have at least one provider for Video Super-Resolution. # Verify that we have at least one provider for Video Super-Resolution.
is_feature_enabled(FILTER_VIDEO_SUPERRESOLUTION T_CHECK_NVIDIA) is_feature_enabled(FILTER_VIDEO_SUPERRESOLUTION_NVIDIA T_CHECK_NVIDIA)
if (NOT T_CHECK_NVIDIA) if (NOT T_CHECK_NVIDIA)
message(WARNING "${LOGPREFIX}: Video Super-Resolution has no available providers. Disabling...") message(WARNING "${LOGPREFIX}: Video Super-Resolution has no available providers. Disabling...")
set_feature_disabled(FILTER_VIDEO_SUPERRESOLUTION ON) set_feature_disabled(FILTER_VIDEO_SUPERRESOLUTION ON)