summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorcorrea <thiago.correa@gmail.com>2020-06-11 01:38:27 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-11 11:55:40 (GMT)
commitb76b4dea1cd60e9899fd641602901ded9e0d7a7b (patch)
tree887fdf26c2c73c471d901ce41502d6a4ceea0605 /Modules
parent5591e826c80ea2d5dac70603777feb7dcbd7320d (diff)
downloadCMake-b76b4dea1cd60e9899fd641602901ded9e0d7a7b.zip
CMake-b76b4dea1cd60e9899fd641602901ded9e0d7a7b.tar.gz
CMake-b76b4dea1cd60e9899fd641602901ded9e0d7a7b.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake6
1 files 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)