forked from mirror/openmw-tes3mp
Remove libavresample restriction.
This commit is contained in:
parent
166ee6b483
commit
d92400e550
1 changed files with 3 additions and 8 deletions
|
@ -151,15 +151,10 @@ if( SWRESAMPLE_FOUND )
|
||||||
add_definitions(-DHAVE_LIBSWRESAMPLE)
|
add_definitions(-DHAVE_LIBSWRESAMPLE)
|
||||||
set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${SWRESAMPLE_LIBRARIES})
|
set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${SWRESAMPLE_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
# restrict the use of libavresample to debian based system only
|
if( AVRESAMPLE_FOUND )
|
||||||
if(EXISTS "/etc/debian_version")
|
set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${AVRESAMPLE_LIBRARIES})
|
||||||
if( AVRESAMPLE_FOUND )
|
|
||||||
set(SOUND_INPUT_LIBRARY ${FFMPEG_LIBRARIES} ${AVRESAMPLE_LIBRARIES})
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Libav libavresample required, but not found!")
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "FFmpeg libswresample required, but not found!")
|
message(FATAL_ERROR "Install either libswresample (FFmpeg) or libavresample (Libav).")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue