Workaround for silencing a cmake warning for older versions

This commit is contained in:
Andreas Fabri 2018-01-17 08:54:06 +00:00
parent effca64dd4
commit 8d15f77479
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,9 @@ endif()
find_package( Boost OPTIONAL_COMPONENTS serialization iostreams )
if( WIN32 )
# to avoid a warning with old cmake
set(_Boost_BZIP2_HEADERS "boost/iostreams/filter/bzip2.hpp")
set(_Boost_ZLIB_HEADERS "boost/iostreams/filter/zlib.hpp")
find_package( Boost OPTIONAL_COMPONENTS zlib)
endif()

View File

@ -31,6 +31,9 @@ endif()
find_package( Boost OPTIONAL_COMPONENTS serialization iostreams)
if( WIN32 )
# to avoid a warning with old cmake
set(_Boost_BZIP2_HEADERS "boost/iostreams/filter/bzip2.hpp")
set(_Boost_ZLIB_HEADERS "boost/iostreams/filter/zlib.hpp")
find_package( Boost OPTIONAL_COMPONENTS zlib)
endif()