From b76b4dea1cd60e9899fd641602901ded9e0d7a7b Mon Sep 17 00:00:00 2001 From: correa Date: Wed, 10 Jun 2020 21:38:27 -0400 Subject: FindBoost: Allow Boost::zlib and Boost::bzip2 targets on all platforms When boost is built with `BZIP2_SOURCE` or `ZLIB_SOURCE` it will generate boost versions of these libraries. Since commit cb1a434ce0 (FindBoost: Add check headers for `zlib` and `bzip2`, 2016-07-01, v3.7.0-rc1~400^2) we look for them only on Windows where they are commonly provided, but they may be available on every platform. --- Modules/FindBoost.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 13981d3..82dbcb9 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -1270,10 +1270,8 @@ function(_Boost_COMPONENT_HEADERS component _hdrs) set(_Boost_UNIT_TEST_FRAMEWORK_HEADERS "boost/test/framework.hpp") set(_Boost_WAVE_HEADERS "boost/wave.hpp") set(_Boost_WSERIALIZATION_HEADERS "boost/archive/text_wiarchive.hpp") - if(WIN32) - set(_Boost_BZIP2_HEADERS "boost/iostreams/filter/bzip2.hpp") - set(_Boost_ZLIB_HEADERS "boost/iostreams/filter/zlib.hpp") - endif() + set(_Boost_BZIP2_HEADERS "boost/iostreams/filter/bzip2.hpp") + set(_Boost_ZLIB_HEADERS "boost/iostreams/filter/zlib.hpp") string(TOUPPER ${component} uppercomponent) set(${_hdrs} ${_Boost_${uppercomponent}_HEADERS} PARENT_SCOPE) -- cgit v0.12