diff --git a/CMakeLists.txt b/CMakeLists.txt index df2c2fdf8..98a190a5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,15 +151,10 @@ if( SWRESAMPLE_FOUND ) add_definitions(-DHAVE_LIBSWRESAMPLE) set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${SWRESAMPLE_LIBRARIES}) else() - # restrict the use of libavresample to debian based system only - if(EXISTS "/etc/debian_version") - if( AVRESAMPLE_FOUND ) - set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${AVRESAMPLE_LIBRARIES}) - else() - message(FATAL_ERROR "Libav libavresample required, but not found!") - endif() + if( AVRESAMPLE_FOUND ) + set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${AVRESAMPLE_LIBRARIES}) else() - message(FATAL_ERROR "FFmpeg libswresample required, but not found!") + message(FATAL_ERROR "Install either libswresample (FFmpeg) or libavresample (Libav).") endif() endif()