aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2016-02-24 00:26:37 +0900
committerTsuda Kageyu <tsuda.kageyu@gmail.com>2016-03-02 11:14:11 +0900
commita27199b7722b857bc6c4bc4cad5afa6bebc5c5d2 (patch)
treef26e31a269a0f16331561b0db1c5fd4d8216fa18 /ConfigureChecks.cmake
parent6c27a32de8a5b00e159f766bf1176dca1124ebf1 (diff)
Support Boost iostreams library to decode compressed ID3v2 frames in additiion to zlib.
This will help Windows users build TagLib without zlib source.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0f2b6d87..ee4fdc2e 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -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.