diff --git a/CMakeLists.txt b/CMakeLists.txt index 1adcea398f..ecde739705 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,31 +222,32 @@ if(IS_ABSOLUTE "${CMAKE_INSTALL_INCLUDEDIR}") else() set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") endif() -if (LIBDE265_FOUND AND NOT WITH_LIBDE265_PLUGIN) +if (LIBDE265_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_LIBDE265_PLUGIN)) list(APPEND REQUIRES_PRIVATE "libde265") endif() -if (X265_FOUND AND NOT WITH_X265_PLUGIN) +if (X265_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_X265_PLUGIN)) list(APPEND REQUIRES_PRIVATE "x265") endif() -if ((AOM_DECODER_FOUND AND NOT WITH_AOM_DECODER_PLUGIN) OR (AOM_ENCODER_FOUND AND NOT WITH_AOM_ENCODER_PLUGIN)) +if ((AOM_DECODER_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_AOM_DECODER_PLUGIN)) + OR (AOM_ENCODER_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_AOM_ENCODER_PLUGIN))) list(APPEND REQUIRES_PRIVATE "aom") endif() -if (FFMPEG_DECODER_FOUND AND NOT WITH_FFMPEG_DECODER_PLUGIN) +if (FFMPEG_DECODER_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_FFMPEG_DECODER_PLUGIN)) list(APPEND REQUIRES_PRIVATE "ffmpeg") endif() -if (DAV1D_FOUND AND NOT WITH_DAV1D_PLUGIN) +if (DAV1D_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_DAV1D_PLUGIN)) list(APPEND REQUIRES_PRIVATE "dav1d") endif() -if (RAV1E_FOUND AND NOT WITH_RAV1E_PLUGIN) +if (RAV1E_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_RAV1E_PLUGIN)) list(APPEND REQUIRES_PRIVATE "rav1e") endif() -if (SvtEnc_FOUND AND NOT WITH_SvtEnc_PLUGIN) +if (SvtEnc_FOUND AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_SvtEnc_PLUGIN)) list(APPEND REQUIRES_PRIVATE "SvtAv1Enc") endif() -if (JPEG_FOUND AND ((WITH_JPEG_DECODER AND NOT WITH_JPEG_DECODER_PLUGIN) OR (WITH_JPEG_ENCODER AND NOT WITH_JPEG_ENCODER_PLUGIN))) +if (JPEG_FOUND AND ((WITH_JPEG_DECODER AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_JPEG_DECODER_PLUGIN)) OR (WITH_JPEG_ENCODER AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_JPEG_ENCODER_PLUGIN)))) list(APPEND REQUIRES_PRIVATE "libjpeg") endif() -if (OpenJPEG_FOUND AND ((WITH_OpenJPEG_DECODER AND NOT WITH_OpenJPEG_DECODER_PLUGIN) OR (WITH_OpenJPEG_ENCODER AND NOT WITH_OpenJPEG_ENCODER_PLUGIN))) +if (OpenJPEG_FOUND AND ((WITH_OpenJPEG_DECODER AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_OpenJPEG_DECODER_PLUGIN)) OR (WITH_OpenJPEG_ENCODER AND NOT (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_OpenJPEG_ENCODER_PLUGIN)))) list(APPEND REQUIRES_PRIVATE "libopenjp2") endif() if (LIBSHARPYUV_FOUND)