diff --git a/src/CMakeModules/Bootstrap_Linux.cmake b/src/CMakeModules/Bootstrap_Linux.cmake index 7af7639a99..9c649e6a9a 100644 --- a/src/CMakeModules/Bootstrap_Linux.cmake +++ b/src/CMakeModules/Bootstrap_Linux.cmake @@ -20,7 +20,7 @@ MARK_AS_ADVANCED (CMAKE_INSTALL_PREFIX) if (USE_STATIC_BOOST) SET (Boost_USE_STATIC_LIBS ON) endif() -FIND_PACKAGE (Boost 1.67.0 COMPONENTS system thread chrono filesystem log locale regex date_time coroutine REQUIRED) +FIND_PACKAGE (Boost 1.67.0 COMPONENTS system thread chrono filesystem log_setup log locale regex date_time coroutine REQUIRED) if (NOT USE_SYSTEM_FFMPEG) FetchContent_Declare( diff --git a/src/CMakeModules/FindFFmpeg.cmake b/src/CMakeModules/FindFFmpeg.cmake index a5560d8084..87503f226a 100644 --- a/src/CMakeModules/FindFFmpeg.cmake +++ b/src/CMakeModules/FindFFmpeg.cmake @@ -154,9 +154,17 @@ foreach (_component AVCODEC AVDEVICE AVFORMAT AVUTIL POSTPROCESS SWSCALE) endforeach () # Compile the list of required vars -set(_FFmpeg_REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS) +if (FFMPEG_INCLUDE_DIRS) + set(_FFmpeg_REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS) +else () + set(_FFmpeg_REQUIRED_VARS FFMPEG_LIBRARIES) +endif () foreach (_component ${FFmpeg_FIND_COMPONENTS}) - list(APPEND _FFmpeg_REQUIRED_VARS ${_component}_LIBRARIES ${_component}_INCLUDE_DIRS) + if (${_component}_INCLUDE_DIRS) + list(APPEND _FFmpeg_REQUIRED_VARS ${_component}_LIBRARIES ${_component}_INCLUDE_DIRS) + else () + list(APPEND _FFmpeg_REQUIRED_VARS ${_component}_LIBRARIES) + endif () endforeach () # Give a nice error message if some of the required vars are missing.