Support Boost iostreams library to decode compressed ID3v2 frames in additiion to zlib.

This will help Windows users build TagLib without zlib source.
This commit is contained in:
Tsuda Kageyu
2016-02-24 00:26:37 +09:00
parent 6c27a32de8
commit a27199b772
4 changed files with 56 additions and 7 deletions

View File

@ -225,6 +225,15 @@ if(NOT ZLIB_SOURCE)
else()
set(HAVE_ZLIB 0)
endif()
if(NOT HAVE_ZLIB)
find_package(Boost COMPONENTS iostreams zlib)
if(Boost_IOSTREAMS_FOUND AND Boost_ZLIB_FOUND)
set(HAVE_BOOST_ZLIB 1)
else()
set(HAVE_BOOST_ZLIB 0)
endif()
endif()
endif()
# Determine whether CppUnit is installed.