diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2016-06-30 17:02:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-05 18:22:01 (GMT) |
commit | cb1a434ce093ea2530a7acd5692f4da8cfb9f8aa (patch) | |
tree | 7efa4d0b7db2e3d314543b96b6eb5a0acf286fc2 /Modules/FindBoost.cmake | |
parent | 909048e5342fa6369ae26470ee0ce82e2a62abfb (diff) | |
download | CMake-cb1a434ce093ea2530a7acd5692f4da8cfb9f8aa.zip CMake-cb1a434ce093ea2530a7acd5692f4da8cfb9f8aa.tar.gz CMake-cb1a434ce093ea2530a7acd5692f4da8cfb9f8aa.tar.bz2 |
FindBoost: Add check headers for `zlib` and `bzip2`
The official Windows builds of Boost have internal implementations for
`zlib` and `bzip2` libraries used by Boost::iostreams library, e.g.
* boost_bzip2-vc140-mt-1_59.lib
* boost_zlib-vc140-mt-1_59.lib
Add check headers for these so that users can specify them as
components without any warnings.
Reviewed-by: Roger Leigh <rleigh@dundee.ac.uk>
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r-- | Modules/FindBoost.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 2560459..ed149c6 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -808,6 +808,10 @@ 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() string(TOUPPER ${component} uppercomponent) set(${_hdrs} ${_Boost_${uppercomponent}_HEADERS} PARENT_SCOPE) |