Commit b2ca10a8 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: fix find_library() for bzip2

parent 2c4ed7f8
...@@ -224,11 +224,7 @@ if(WITH_FFMPEG) ...@@ -224,11 +224,7 @@ if(WITH_FFMPEG)
if(HAVE_FFMPEG) if(HAVE_FFMPEG)
# Find the bzip2 library because it is required on some systems # Find the bzip2 library because it is required on some systems
FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2) FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2 libbz2.so.1)
if(NOT BZIP2_LIBRARIES)
# Do an other trial
FIND_FILE(BZIP2_LIBRARIES NAMES libbz2.so.1 PATHS /lib)
endif()
else() else()
find_path(FFMPEG_INCLUDE_DIR "libavformat/avformat.h" find_path(FFMPEG_INCLUDE_DIR "libavformat/avformat.h"
PATHS /usr/local /usr /opt PATHS /usr/local /usr /opt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment