diff options
author | Brad King <brad.king@kitware.com> | 2021-02-10 13:14:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-10 13:14:40 (GMT) |
commit | ea07176b9ae7cef1698a45e709c2a249f72df50c (patch) | |
tree | b363bb3dccb80c173a698adbd219e6d3ec98aee9 /Modules | |
parent | bb68658e9827ddec69bf42f957693150b6bd2e0a (diff) | |
parent | 90467747a143e7fa9e77d7361c1e17cbe9050364 (diff) | |
download | CMake-ea07176b9ae7cef1698a45e709c2a249f72df50c.zip CMake-ea07176b9ae7cef1698a45e709c2a249f72df50c.tar.gz CMake-ea07176b9ae7cef1698a45e709c2a249f72df50c.tar.bz2 |
Merge topic 'FindBoost-no-warn'
90467747a1 FindBoost: Add option to suppress new boost version dependency warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5794
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindBoost.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 453f0b1..f8887ad 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -296,6 +296,12 @@ Other variables one may set to control this module are: Default value for ``Boost_LIBRARY_DIR_RELEASE`` and ``Boost_LIBRARY_DIR_DEBUG``. +``Boost_NO_WARN_NEW_VERSIONS`` + .. versionadded:: 3.20 + + Set to ``ON`` to suppress the warning about unknown dependencies for new + Boost versions. + On Visual Studio and Borland compilers Boost headers request automatic linking to corresponding libraries. This requires matching libraries to be linked explicitly or available in the link library search path. @@ -1344,7 +1350,7 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret) set(_Boost_TIMER_DEPENDENCIES chrono) set(_Boost_WAVE_DEPENDENCIES filesystem serialization thread chrono date_time atomic) set(_Boost_WSERIALIZATION_DEPENDENCIES serialization) - if(Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.76.0) + if(Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.76.0 AND NOT Boost_NO_WARN_NEW_VERSIONS) message(WARNING "New Boost version may have incorrect or missing dependencies and imported targets") endif() endif() |